mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-21 15:58:25 +00:00
fix: clear notifications properly on muted groups
This commit is contained in:
parent
4bc9bdea73
commit
873fb6b578
@ -284,8 +284,9 @@ public class DefaultMessageNotifier implements MessageNotifier {
|
|||||||
sendMultipleThreadNotification(context, notificationState, signal);
|
sendMultipleThreadNotification(context, notificationState, signal);
|
||||||
} else if (notificationState.getMessageCount() > 0){
|
} else if (notificationState.getMessageCount() > 0){
|
||||||
sendSingleThreadNotification(context, notificationState, signal, false);
|
sendSingleThreadNotification(context, notificationState, signal, false);
|
||||||
|
} else {
|
||||||
|
cancelActiveNotifications(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
cancelOrphanedNotifications(context, notificationState);
|
cancelOrphanedNotifications(context, notificationState);
|
||||||
updateBadge(context, notificationState.getMessageCount());
|
updateBadge(context, notificationState.getMessageCount());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user