fix: Notifications on web correctly managed when tab not focused

This commit is contained in:
Christian Kußowski 2026-01-18 14:20:18 +01:00
commit a0aeab34ea
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 2 additions and 9 deletions

View file

@ -523,9 +523,7 @@ class ChatController extends State<ChatPageWithRoom>
}
// Do not send read markers when app is not in foreground
if (kIsWeb && !Matrix.of(context).webHasFocus) return;
if (!kIsWeb &&
WidgetsBinding.instance.lifecycleState != AppLifecycleState.resumed) {
if (WidgetsBinding.instance.lifecycleState != AppLifecycleState.resumed) {
return;
}