mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Report native calls that end without us to CallKit
The call package now says why a call ended. Only our own hang-up is an end call action; a call the other side declined or left, that nobody answered, or that failed is reported to CallKit with that reason, so the call log no longer shows it as one we ended, and no end action comes back to hang up a call that is already over. Also adopts the package's other host changes: the voice call icon beside "Calling…", and the call's large avatar rendered at the 140 pt it is drawn at. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
import CallKit
|
||||
import Combine
|
||||
import ElementCall
|
||||
|
||||
@@ -66,5 +67,10 @@ protocol ElementCallServiceProtocol: AnyObject {
|
||||
/// Ends the call for the room, including an answered call the native stack never took over.
|
||||
func tearDownCallSession(roomID: String)
|
||||
|
||||
/// The call for the room ended without us: declined, unanswered, the other side gone, or failed.
|
||||
/// Reported to the system as such rather than as an end call action, which would log it as one
|
||||
/// we hung up and ask the call stack to end a call it already has.
|
||||
func reportCallSessionEnded(roomID: String, reason: CXCallEndedReason)
|
||||
|
||||
func setAudioEnabled(_ enabled: Bool, roomID: String)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user