From d4ab6585ea608580cc26d9c0739aeec7b28b2e80 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 8 Jul 2021 13:28:30 -0700 Subject: [PATCH] UI state fixes Fix #89 Fix #75 --- lib/views/groupsettingsview.dart | 1 + lib/views/peersettingsview.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/views/groupsettingsview.dart b/lib/views/groupsettingsview.dart index f1e50b95..a0149122 100644 --- a/lib/views/groupsettingsview.dart +++ b/lib/views/groupsettingsview.dart @@ -173,6 +173,7 @@ class _GroupSettingsViewState extends State { var handle = Provider.of(context, listen: false).onion; Provider.of(context, listen: false).cwtch.LeaveGroup(profileOnion, handle); Future.delayed(Duration(milliseconds: 500), () { + Provider.of(context, listen: false).selectedConversation = null; Navigator.of(context).popUntil((route) => route.settings.name == "conversations"); // dismiss dialog }); }, diff --git a/lib/views/peersettingsview.dart b/lib/views/peersettingsview.dart index cdcfc707..44de9d79 100644 --- a/lib/views/peersettingsview.dart +++ b/lib/views/peersettingsview.dart @@ -230,6 +230,7 @@ class _PeerSettingsViewState extends State { var handle = Provider.of(context, listen: false).onion; Provider.of(context, listen: false).cwtch.LeaveConversation(profileOnion, handle); Future.delayed(Duration(milliseconds: 500), () { + Provider.of(context, listen: false).selectedConversation = null; Navigator.of(context).popUntil((route) => route.settings.name == "conversations"); // dismiss dialog }); },