diff --git a/lib/utils/push_helper.dart b/lib/utils/push_helper.dart index d0f96335..985eaa7d 100644 --- a/lib/utils/push_helper.dart +++ b/lib/utils/push_helper.dart @@ -112,6 +112,12 @@ Future _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);