You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: features/call/impl/src/main/kotlin/io/element/android/features/call/impl/notifications/CallNotificationData.kt
+1
Original file line number
Diff line number
Diff line change
@@ -25,4 +25,5 @@ data class CallNotificationData(
Copy file name to clipboardexpand all lines: features/call/impl/src/main/kotlin/io/element/android/features/call/impl/notifications/RingingCallNotificationCreator.kt
+7-1
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ class RingingCallNotificationCreator @Inject constructor(
63
63
roomAvatarUrl:String?,
64
64
notificationChannelId:String,
65
65
timestamp:Long,
66
+
textContent:String?,
66
67
): Notification? {
67
68
val matrixClient = matrixClientProvider.getOrRestore(sessionId).getOrNull() ?:returnnull
68
69
val imageLoader = imageLoaderHolder.get(matrixClient)
@@ -84,7 +85,8 @@ class RingingCallNotificationCreator @Inject constructor(
84
85
senderName = senderDisplayName,
85
86
avatarUrl = roomAvatarUrl,
86
87
notificationChannelId = notificationChannelId,
87
-
timestamp = timestamp
88
+
timestamp = timestamp,
89
+
textContent = textContent,
88
90
)
89
91
90
92
val declineIntent =PendingIntentCompat.getBroadcast(
@@ -120,6 +122,10 @@ class RingingCallNotificationCreator @Inject constructor(
120
122
.setOngoing(true)
121
123
.setShowWhen(false)
122
124
.apply {
125
+
if (textContent !=null) {
126
+
setContentText(textContent)
127
+
// Else the content text is set by the style (will be "Incoming call")
Copy file name to clipboardexpand all lines: features/call/impl/src/test/kotlin/io/element/android/features/call/notifications/RingingCallNotificationCreatorTest.kt
+1
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ class RingingCallNotificationCreatorTest {
0 commit comments