NotificationHelper: don't send notification if it's from muted thread

main
Alibek Omarov 4 years ago
parent 3fe33b0435
commit 43a21d0a3a
  1. 6
      app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java

@ -143,6 +143,12 @@ public class NotificationHelper {
if (body.getPleroma() != null && body.getPleroma().getSeen()) {
return;
}
if (body.getStatus() != null
&& body.getStatus().getPleroma() != null
&& body.getStatus().getPleroma().getThreadMuted() == true) {
return;
}
String rawCurrentNotifications = account.getActiveNotifications();
JSONArray currentNotifications;

Loading…
Cancel
Save