From 7576a978e05c132875772830363747655c73d13d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 30 Dec 2025 16:46:32 +0100 Subject: [PATCH] Make the notification silent when the message is an outgoing message (quick reply). The boolean isUpdated will be passed to setOnlyAlertOnce(), and when the value is true, the notification does not ring/vibrate again. --- .../push/impl/notifications/RoomGroupMessageCreator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/RoomGroupMessageCreator.kt b/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/RoomGroupMessageCreator.kt index 8683b58493..150f4a9a2d 100644 --- a/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/RoomGroupMessageCreator.kt +++ b/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/RoomGroupMessageCreator.kt @@ -75,7 +75,7 @@ class DefaultRoomGroupMessageCreator( hasSmartReplyError = smartReplyErrors.isNotEmpty(), shouldBing = events.any { it.noisy }, customSound = events.last().soundName, - isUpdated = events.last().isUpdated, + isUpdated = events.last().let { it.isUpdated || it.outGoingMessage }, ), threadId = threadId, largeIcon = largeBitmap,