From 3fd44dfc3559306ee300e99652ff7b6d63d3ad25 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 11 May 2018 20:50:29 +0200 Subject: [PATCH] Ignore room notifications Signed-off-by: Mario Danic --- app/src/main/java/com/nextcloud/talk/jobs/NotificationJob.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/jobs/NotificationJob.java b/app/src/main/java/com/nextcloud/talk/jobs/NotificationJob.java index 21c8a9d2b..b8e6090d0 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/NotificationJob.java +++ b/app/src/main/java/com/nextcloud/talk/jobs/NotificationJob.java @@ -92,7 +92,8 @@ public class NotificationJob extends Job { DecryptedPushMessage decryptedPushMessage = LoganSquare.parse(new String(decryptedSubject), DecryptedPushMessage.class); - if (decryptedPushMessage.getApp().equals("spreed")) { + if (decryptedPushMessage.getApp().equals("spreed") && + decryptedPushMessage.getType().equals("room")) { int smallIcon; Bitmap largeIcon; String category = "";