Fix incoming call notification content (related to #4225)

This commit is contained in:
Benoit Marty 2025-02-03 15:19:12 +01:00
parent 5a4cac7d2d
commit 9a386af9bc
2 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ class DefaultCallNotificationEventResolver @Inject constructor(
noisy = true, noisy = true,
timestamp = this.timestamp, timestamp = this.timestamp,
senderDisambiguatedDisplayName = getDisambiguatedDisplayName(content.senderId), senderDisambiguatedDisplayName = getDisambiguatedDisplayName(content.senderId),
body = "☎️ ${stringProvider.getString(R.string.notification_incoming_call)}", body = stringProvider.getString(R.string.notification_incoming_call),
roomName = roomDisplayName, roomName = roomDisplayName,
roomIsDm = isDm, roomIsDm = isDm,
roomAvatarPath = roomAvatarUrl, roomAvatarPath = roomAvatarUrl,

View file

@ -627,7 +627,7 @@ class DefaultNotifiableEventResolverTest {
senderId = A_USER_ID_2, senderId = A_USER_ID_2,
roomName = A_ROOM_NAME, roomName = A_ROOM_NAME,
editedEventId = null, editedEventId = null,
description = "Incoming call", description = "📹 Incoming call",
timestamp = timestamp, timestamp = timestamp,
canBeReplaced = true, canBeReplaced = true,
isRedacted = false, isRedacted = false,
@ -663,7 +663,7 @@ class DefaultNotifiableEventResolverTest {
timestamp = 0L, timestamp = 0L,
senderDisambiguatedDisplayName = A_USER_NAME_2, senderDisambiguatedDisplayName = A_USER_NAME_2,
senderId = A_USER_ID_2, senderId = A_USER_ID_2,
body = "\uFE0F Incoming call", body = "📹 Incoming call",
roomId = A_ROOM_ID, roomId = A_ROOM_ID,
threadId = null, threadId = null,
roomName = A_ROOM_NAME, roomName = A_ROOM_NAME,
@ -699,7 +699,7 @@ class DefaultNotifiableEventResolverTest {
timestamp = A_TIMESTAMP, timestamp = A_TIMESTAMP,
senderDisambiguatedDisplayName = A_USER_NAME_2, senderDisambiguatedDisplayName = A_USER_NAME_2,
senderId = A_USER_ID_2, senderId = A_USER_ID_2,
body = "\uFE0F Incoming call", body = "📹 Incoming call",
roomId = A_ROOM_ID, roomId = A_ROOM_ID,
threadId = null, threadId = null,
roomName = A_ROOM_NAME, roomName = A_ROOM_NAME,