diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 41afabb94..e82620509 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -445,6 +445,7 @@ class ChatController extends State @override void didChangeAppLifecycleState(AppLifecycleState state) { if (state != AppLifecycleState.resumed) return; + if (!mounted) return; setReadMarker(); }