chore: Add missing mounted check

This commit is contained in:
Christian Kußowski 2025-06-08 13:40:14 +02:00
parent 4e9d299d33
commit ed1767ae93
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -445,6 +445,7 @@ class ChatController extends State<ChatPageWithRoom>
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state != AppLifecycleState.resumed) return;
if (!mounted) return;
setReadMarker();
}