Fix notifications for muted rooms
This commit is contained in:
parent
66c2804745
commit
b94be803ce
|
@ -160,6 +160,7 @@ class MatrixState extends State<Matrix> {
|
|||
|
||||
void _showWebNotification(EventUpdate eventUpdate) async {
|
||||
final room = client.getRoomById(eventUpdate.roomID);
|
||||
if (room.notificationCount == 0) return;
|
||||
final event = Event.fromJson(eventUpdate.content, room);
|
||||
final body = event.getLocalizedBody(
|
||||
L10n.of(context),
|
||||
|
|
Loading…
Reference in a new issue