mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Make the notification silent when the message is an outgoing message (quick reply). (#5961)
The boolean isUpdated will be passed to setOnlyAlertOnce(), and when the value is true, the notification does not ring/vibrate again.
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ class DefaultRoomGroupMessageCreator(
|
|||||||
hasSmartReplyError = smartReplyErrors.isNotEmpty(),
|
hasSmartReplyError = smartReplyErrors.isNotEmpty(),
|
||||||
shouldBing = events.any { it.noisy },
|
shouldBing = events.any { it.noisy },
|
||||||
customSound = events.last().soundName,
|
customSound = events.last().soundName,
|
||||||
isUpdated = events.last().isUpdated,
|
isUpdated = events.last().let { it.isUpdated || it.outGoingMessage },
|
||||||
),
|
),
|
||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
largeIcon = largeBitmap,
|
largeIcon = largeBitmap,
|
||||||
|
|||||||
Reference in New Issue
Block a user