diff --git a/lib/views/addeditprofileview.dart b/lib/views/addeditprofileview.dart index 094dcec2..54f8098a 100644 --- a/lib/views/addeditprofileview.dart +++ b/lib/views/addeditprofileview.dart @@ -236,7 +236,6 @@ class _AddEditProfileViewState extends State { onChanged: (bool value) { Provider.of(context, listen: false).enabled = value; if (value) { - Provider.of(context, listen: false).cwtch.ActivatePeerEngine(Provider.of(context, listen: false).onion); if (Provider.of(context, listen: false).appearOffline == false) { Provider.of(context, listen: false).cwtch.ConfigureConnections(Provider.of(context, listen: false).onion, true, true, true); } @@ -284,7 +283,6 @@ class _AddEditProfileViewState extends State { // if the profile is already enabled, then cycle the peer engine... if (value == true && Provider.of(context, listen: false).enabled) { Provider.of(context, listen: false).deactivatePeerEngine(context); - Provider.of(context, listen: false).cwtch.ActivatePeerEngine(onion); Provider.of(context, listen: false).cwtch.ConfigureConnections(onion, false, false, false); } } diff --git a/lib/views/contactsview.dart b/lib/views/contactsview.dart index 78dbc60e..e82328b0 100644 --- a/lib/views/contactsview.dart +++ b/lib/views/contactsview.dart @@ -182,7 +182,6 @@ class _ContactsViewState extends State { break; case ProfileStatusMenu.appearOffline: Provider.of(context, listen: false).deactivatePeerEngine(context); - Provider.of(context, listen: false).cwtch.ActivatePeerEngine(onion); Provider.of(context, listen: false).cwtch.ConfigureConnections(onion, false, false, false); break; case ProfileStatusMenu.editProfile: