fix silent useless error during verify
This commit is contained in:
parent
e54b059bc9
commit
25afcf4acd
1 changed files with 5 additions and 1 deletions
|
|
@ -63,10 +63,14 @@ class UnifiedPushController extends AsyncNotifier<bool> {
|
|||
"Failed to decrypt notification. Try toggling off and on UnifiedPush in settings.",
|
||||
);
|
||||
}
|
||||
final (event, roomMetadata) = await ref
|
||||
final pushResponse = await ref
|
||||
.read(ClientController.provider.notifier)
|
||||
.handlePush(json.decode(String.fromCharCodes(message.content)));
|
||||
|
||||
if (pushResponse == null) return;
|
||||
|
||||
final (event, roomMetadata) = pushResponse;
|
||||
|
||||
if (event.unreadType?.shouldNotify() != true ||
|
||||
(!isInBackground &&
|
||||
await windowManager.isFocused().onError((_, _) => true) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue