Activate Offline mode when switching
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
Sarah Jamie Lewis 2023-09-19 14:58:54 -07:00
parent 88a4a93326
commit e59b81f013
1 changed files with 2 additions and 0 deletions

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);