fix: Do not display push events for unknown event types
This commit is contained in:
parent
d081645eb3
commit
8e55227afc
1 changed files with 6 additions and 0 deletions
|
|
@ -112,6 +112,12 @@ Future<void> _tryPushHelper(
|
|||
}
|
||||
Logs().v('Push helper got notification event.');
|
||||
|
||||
if (!event.isEventTypeKnown) {
|
||||
Logs()
|
||||
.v('Push message event is from an unknown event type. Do not display.');
|
||||
return;
|
||||
}
|
||||
|
||||
l10n ??= await L10n.delegate.load(window.locale);
|
||||
final matrixLocals = MatrixLocals(l10n);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue