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
|
@override
|
||||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||||
if (state != AppLifecycleState.resumed) return;
|
if (state != AppLifecycleState.resumed) return;
|
||||||
|
if (!mounted) return;
|
||||||
setReadMarker();
|
setReadMarker();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue