Merge branch 'krille/fix-notification-for-muted-rooms' into 'master'
Fix notifications for muted rooms See merge request ChristianPauly/fluffychat-flutter!94
This commit is contained in:
commit
5f07190026
|
@ -160,6 +160,7 @@ class MatrixState extends State<Matrix> {
|
||||||
|
|
||||||
void _showWebNotification(EventUpdate eventUpdate) async {
|
void _showWebNotification(EventUpdate eventUpdate) async {
|
||||||
final room = client.getRoomById(eventUpdate.roomID);
|
final room = client.getRoomById(eventUpdate.roomID);
|
||||||
|
if (room.notificationCount == 0) return;
|
||||||
final event = Event.fromJson(eventUpdate.content, room);
|
final event = Event.fromJson(eventUpdate.content, room);
|
||||||
final body = event.getLocalizedBody(
|
final body = event.getLocalizedBody(
|
||||||
L10n.of(context),
|
L10n.of(context),
|
||||||
|
|
Loading…
Reference in a new issue