chore: Add missing mounted check
This commit is contained in:
parent
4e9d299d33
commit
ed1767ae93
1 changed files with 1 additions and 0 deletions
|
|
@ -445,6 +445,7 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
if (state != AppLifecycleState.resumed) return;
|
||||
if (!mounted) return;
|
||||
setReadMarker();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue