mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Disable notification triggers on group messages.
This commit is contained in:
parent
c738f810b5
commit
a683c3fa90
@ -988,7 +988,8 @@ public class PushDecryptJob extends BaseJob implements InjectableType {
|
||||
// Loki - Map message id to server id
|
||||
updatePublicChatMessageWithServerID(messageServerIDOrNull, insertResult);
|
||||
|
||||
if (threadId != null) {
|
||||
boolean isGroupMessage = message.getGroupInfo().isPresent();
|
||||
if (threadId != null && !isGroupMessage) {
|
||||
MessageNotifier.updateNotification(context, threadId);
|
||||
}
|
||||
}
|
||||
|
@ -388,6 +388,11 @@ public class MessageNotifier {
|
||||
}
|
||||
|
||||
private static void sendInThreadNotification(Context context, Recipient recipient) {
|
||||
// Keep group messages muted!
|
||||
if (recipient.isGroupRecipient()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!TextSecurePreferences.isInThreadNotifications(context) ||
|
||||
ServiceUtil.getAudioManager(context).getRingerMode() != AudioManager.RINGER_MODE_NORMAL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user