Element Call: Send rtc.decline event when incoming call is declined (#4499)

This commit is contained in:
Valere Fedronic
2025-09-16 10:14:04 +02:00
committed by GitHub
parent 3891ca7ec8
commit df47858e7d
6 changed files with 121 additions and 3 deletions
@@ -639,6 +639,16 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
ElementCallWidgetDriver(room: room, deviceID: deviceID)
}
func declineCall(notificationID: String) async -> Result<Void, RoomProxyError> {
do {
try await room.declineCall(rtcNotificationEventId: notificationID)
return .success(())
} catch {
MXLog.error("Failed to decline rtc notification \(notificationID) with error: \(error)")
return .failure(.sdkError(error))
}
}
// MARK: - Permalinks
func matrixToPermalink() async -> Result<URL, RoomProxyError> {