slightly improve bitfield handling for UnreadType

This commit is contained in:
Henry Hiles 2026-10-05 20:16:01 -04:00
commit c81000d6c6
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 3 additions and 6 deletions

View file

@ -87,7 +87,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
final (event, roomMetadata) = pushResponse;
if (event.unreadType?.shouldNotify() != true ||
if (event.unreadType?.has(.notify) != true ||
(!isInBackground &&
await windowManager.isFocused().onError((_, _) => true) &&
await ref.read(