on app close, close toolbar overlay

This commit is contained in:
ggurdin 2024-10-14 10:49:22 -04:00
parent dfb45bb20e
commit 6a96811076
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -470,6 +470,14 @@ class ChatController extends State<ChatPageWithRoom>
@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();
}