فهرست منبع

Cancel notifications for group when re-showing chat

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 سال پیش
والد
کامیت
2f0f90f5f6
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      app/src/main/java/com/nextcloud/talk/controllers/ChatController.java

+ 4 - 0
app/src/main/java/com/nextcloud/talk/controllers/ChatController.java

@@ -450,6 +450,10 @@ public class ChatController extends BaseController implements MessagesListAdapte
         if (getActivity() != null) {
             new KeyboardUtils(getActivity(), getView(), false);
         }
+
+        if (inChat) {
+            NotificationUtils.cancelExistingNotifications(getApplicationContext(), conversationUser);
+        }
     }
 
     @Override