Skip to content

Commit 58afb52

Browse files
committed
feat: Add reason when leaving call from service
Adds a reason when leaving a call from the `CallLifecycleManager`. This provides more context for why the call was ended, distinguishing between different scenarios such as the task being removed for an ongoing or incoming call.
1 parent 0998fac commit 58afb52

File tree

1 file changed

+2
-2
lines changed
  • stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/service/managers

1 file changed

+2
-2
lines changed

stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/service/managers/CallLifecycleManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal class CallLifecycleManager {
8282
}
8383

8484
else -> {
85-
call.leave()
85+
call.leave("call-service-end-call-unknown")
8686
logger.i { "[onTaskRemoved] Ended ongoing call for me" }
8787
}
8888
}
@@ -100,7 +100,7 @@ internal class CallLifecycleManager {
100100
logger.i { "[handleIncomingCallTaskRemoved] Ended incoming call for both users" }
101101
}
102102
} else {
103-
call.leave()
103+
call.leave("call-service-end-call-incoming")
104104
logger.i { "[handleIncomingCallTaskRemoved] Ended incoming call for me" }
105105
}
106106
}

0 commit comments

Comments
 (0)