Remove Activate Peer Engine from Mode Switch (Configure Connections Does this Automatically) #726

Merged
sarah merged 2 commits from stable-blockers into trunk 2023-09-19 22:34:10 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit e59b81f013 - Show all commits

View File

@ -238,6 +238,8 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
if (value) {
if (Provider.of<ProfileInfoState>(context, listen: false).appearOffline == false) {
Provider.of<FlwtchState>(context, listen: false).cwtch.ConfigureConnections(Provider.of<ProfileInfoState>(context, listen: false).onion, true, true, true);
} else {
Provider.of<FlwtchState>(context, listen: false).cwtch.ConfigureConnections(Provider.of<ProfileInfoState>(context, listen: false).onion, false, false, false);
}
} else {
Provider.of<ProfileInfoState>(context, listen: false).deactivatePeerEngine(context);