Skip to content

Commit 838d4b9

Browse files
committed
fix: add todos for future fixes
1 parent 5e2d8dd commit 838d4b9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/handlers/StreamDefaultNotificationHandler.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ constructor(
203203
payload: Map<String, Any?>,
204204
) {
205205
logger.d { "[onLiveCall] callId: ${callId.id}, callDisplayName: $callDisplayName" }
206+
// TODO: Replace StreamCallId.hashCode with StreamCallId.getNotificationId(appropriateType)
206207
val notificationId = callId.hashCode()
207208
val liveCallPendingIntent =
208209
intentResolver.searchLiveCallPendingIntent(callId, notificationId, payload)
@@ -253,6 +254,7 @@ constructor(
253254
payload: Map<String, Any?>,
254255
) {
255256
logger.d { "[onNotification] callId: ${callId.id}, callDisplayName: $callDisplayName" }
257+
// TODO: Replace StreamCallId.hashCode with StreamCallId.getNotificationId(appropriateType)
256258
val notificationId = callId.hashCode()
257259
val intent = intentResolver.searchNotificationCallPendingIntent(
258260
callId,
@@ -745,6 +747,7 @@ constructor(
745747
logger.d {
746748
"[getSimpleOngoingCallNotification] callId: ${callId.id}, callDisplayName: $callDisplayName, isOutgoingCall: $isOutgoingCall, remoteParticipantCount: $remoteParticipantCount"
747749
}
750+
// TODO: Replace StreamCallId.hashCode with StreamCallId.getNotificationId(appropriateType)
748751
val notificationId = callId.hashCode() // Notification ID
749752

750753
// Intents
@@ -1180,6 +1183,7 @@ constructor(
11801183
},
11811184
): Notification {
11821185
logger.d { "[getMinimalMediaStyleNotification] callId: ${callId.id}" }
1186+
// TODO: Replace StreamCallId.hashCode with StreamCallId.getNotificationId(appropriateType)
11831187
val notificationId = callId.hashCode() // Notification ID
11841188
// Intents
11851189
val onClickIntent = intentResolver.searchOngoingCallPendingIntent(

0 commit comments

Comments
 (0)