mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-15 23:11:30 +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
|
// Loki - Map message id to server id
|
||||||
updatePublicChatMessageWithServerID(messageServerIDOrNull, insertResult);
|
updatePublicChatMessageWithServerID(messageServerIDOrNull, insertResult);
|
||||||
|
|
||||||
if (threadId != null) {
|
boolean isGroupMessage = message.getGroupInfo().isPresent();
|
||||||
|
if (threadId != null && !isGroupMessage) {
|
||||||
MessageNotifier.updateNotification(context, threadId);
|
MessageNotifier.updateNotification(context, threadId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -388,6 +388,11 @@ public class MessageNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void sendInThreadNotification(Context context, Recipient recipient) {
|
private static void sendInThreadNotification(Context context, Recipient recipient) {
|
||||||
|
// Keep group messages muted!
|
||||||
|
if (recipient.isGroupRecipient()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!TextSecurePreferences.isInThreadNotifications(context) ||
|
if (!TextSecurePreferences.isInThreadNotifications(context) ||
|
||||||
ServiceUtil.getAudioManager(context).getRingerMode() != AudioManager.RINGER_MODE_NORMAL)
|
ServiceUtil.getAudioManager(context).getRingerMode() != AudioManager.RINGER_MODE_NORMAL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user