mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
fix: Do not display push events for unknown event types
This commit is contained in:
parent
a67b9ccad1
commit
71097379ec
@ -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…
Reference in New Issue
Block a user