matching the other notifications and only alerting the group notifiation once
- fixes notification sounds coming through for every message despite only vibrating for the first
This commit is contained in:
parent
4f51dbdcf9
commit
b041876fa6
|
@ -802,6 +802,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
|
||||||
|
|
||||||
return NotificationCompat.Builder(context, if (noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID)
|
return NotificationCompat.Builder(context, if (noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID)
|
||||||
// used in compat < N, after summary is built based on child notifications
|
// used in compat < N, after summary is built based on child notifications
|
||||||
|
.setOnlyAlertOnce(true)
|
||||||
.setWhen(lastMessageTimestamp)
|
.setWhen(lastMessageTimestamp)
|
||||||
.setStyle(style)
|
.setStyle(style)
|
||||||
.setContentTitle(stringProvider.getString(R.string.app_name))
|
.setContentTitle(stringProvider.getString(R.string.app_name))
|
||||||
|
|
Loading…
Reference in New Issue