Skip to content

Commit 610bd06

Browse files
committed
Fix incoming call notification content (related to #4225)
1 parent be91da9 commit 610bd06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/CallNotificationEventResolver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class DefaultCallNotificationEventResolver @Inject constructor(
6868
noisy = true,
6969
timestamp = this.timestamp,
7070
senderDisambiguatedDisplayName = getDisambiguatedDisplayName(content.senderId),
71-
body = "☎️ ${stringProvider.getString(R.string.notification_incoming_call)}",
71+
body = stringProvider.getString(R.string.notification_incoming_call),
7272
roomName = roomDisplayName,
7373
roomIsDm = isDm,
7474
roomAvatarPath = roomAvatarUrl,

libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolverTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ class DefaultNotifiableEventResolverTest {
627627
senderId = A_USER_ID_2,
628628
roomName = A_ROOM_NAME,
629629
editedEventId = null,
630-
description = "Incoming call",
630+
description = "📹 Incoming call",
631631
timestamp = timestamp,
632632
canBeReplaced = true,
633633
isRedacted = false,
@@ -663,7 +663,7 @@ class DefaultNotifiableEventResolverTest {
663663
timestamp = 0L,
664664
senderDisambiguatedDisplayName = A_USER_NAME_2,
665665
senderId = A_USER_ID_2,
666-
body = "\uFE0F Incoming call",
666+
body = "📹 Incoming call",
667667
roomId = A_ROOM_ID,
668668
threadId = null,
669669
roomName = A_ROOM_NAME,
@@ -699,7 +699,7 @@ class DefaultNotifiableEventResolverTest {
699699
timestamp = A_TIMESTAMP,
700700
senderDisambiguatedDisplayName = A_USER_NAME_2,
701701
senderId = A_USER_ID_2,
702-
body = "\uFE0F Incoming call",
702+
body = "📹 Incoming call",
703703
roomId = A_ROOM_ID,
704704
threadId = null,
705705
roomName = A_ROOM_NAME,

0 commit comments

Comments
 (0)