diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index ed223b061..a51a86b37 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -470,6 +470,14 @@ class ChatController extends State @override void didChangeAppLifecycleState(AppLifecycleState state) { + // #Pangea + // On iOS, if the toolbar is open and the app is closed, then the user goes + // back to do more toolbar activities, the toolbar buttons / selection don't + // update properly. So, when the user closes the app, close the toolbar overlay. + if (state == AppLifecycleState.paused) { + clearSelectedEvents(); + } + // Pangea# if (state != AppLifecycleState.resumed) return; setReadMarker(); }