Skip to content

Commit

Permalink
Fixes #3041 - Video not rendering after starting or joinng a call
Browse files Browse the repository at this point in the history
- not completely sure why this happens but `reportOutgoingCall` interferes with how the WebView gets access to video streams
- the call itself isn't really necessary so removing it is the simplest way forward
  • Loading branch information
stefanceriu committed Jul 16, 2024
1 parent b3e377e commit 712d741
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ElementX/Sources/Services/ElementCall/ElementCallService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@ class ElementCallService: NSObject, ElementCallServiceProtocol, PKPushRegistryDe
MXLog.info("Call provider did reset: \(provider)")
}

func provider(_ provider: CXProvider, perform action: CXStartCallAction) {
if let ongoingCallID {
provider.reportOutgoingCall(with: ongoingCallID.callKitID, connectedAt: nil)
} else {
MXLog.error("Failed starting call, missing ongoingCallID")
}

action.fulfill()
}

func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
if let incomingCallID {
actionsSubject.send(.startCall(roomID: incomingCallID.roomID))
Expand Down

0 comments on commit 712d741

Please sign in to comment.