fix: Do not display push events for unknown event types

This commit is contained in:
Christian Pauly 2022-08-25 18:35:54 +02:00
parent a67b9ccad1
commit 71097379ec

View File

@ -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);