From 9a386af9bc337e3e8ec3c49cdfcbabf7ee0cff51 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 3 Feb 2025 15:19:12 +0100 Subject: [PATCH] Fix incoming call notification content (related to #4225) --- .../impl/notifications/CallNotificationEventResolver.kt | 2 +- .../notifications/DefaultNotifiableEventResolverTest.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/CallNotificationEventResolver.kt b/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/CallNotificationEventResolver.kt index 3bf6497e5c..ecbee49810 100644 --- a/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/CallNotificationEventResolver.kt +++ b/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/CallNotificationEventResolver.kt @@ -68,7 +68,7 @@ class DefaultCallNotificationEventResolver @Inject constructor( noisy = true, timestamp = this.timestamp, senderDisambiguatedDisplayName = getDisambiguatedDisplayName(content.senderId), - body = "☎️ ${stringProvider.getString(R.string.notification_incoming_call)}", + body = stringProvider.getString(R.string.notification_incoming_call), roomName = roomDisplayName, roomIsDm = isDm, roomAvatarPath = roomAvatarUrl, diff --git a/libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolverTest.kt b/libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolverTest.kt index 5c7800e0cc..a194c9d67b 100644 --- a/libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolverTest.kt +++ b/libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolverTest.kt @@ -627,7 +627,7 @@ class DefaultNotifiableEventResolverTest { senderId = A_USER_ID_2, roomName = A_ROOM_NAME, editedEventId = null, - description = "Incoming call", + description = "📹 Incoming call", timestamp = timestamp, canBeReplaced = true, isRedacted = false, @@ -663,7 +663,7 @@ class DefaultNotifiableEventResolverTest { timestamp = 0L, senderDisambiguatedDisplayName = A_USER_NAME_2, senderId = A_USER_ID_2, - body = "☎\uFE0F Incoming call", + body = "📹 Incoming call", roomId = A_ROOM_ID, threadId = null, roomName = A_ROOM_NAME, @@ -699,7 +699,7 @@ class DefaultNotifiableEventResolverTest { timestamp = A_TIMESTAMP, senderDisambiguatedDisplayName = A_USER_NAME_2, senderId = A_USER_ID_2, - body = "☎\uFE0F Incoming call", + body = "📹 Incoming call", roomId = A_ROOM_ID, threadId = null, roomName = A_ROOM_NAME,