|
|
@ -32,7 +32,7 @@ class WebRTCCallMessageHandler: NSObject, OWSCallMessageHandler {
|
|
|
|
Logger.verbose("\(TAG) handling offer from caller:\(callerId)")
|
|
|
|
Logger.verbose("\(TAG) handling offer from caller:\(callerId)")
|
|
|
|
|
|
|
|
|
|
|
|
let thread = TSContactThread.getOrCreateThread(contactId: callerId)
|
|
|
|
let thread = TSContactThread.getOrCreateThread(contactId: callerId)
|
|
|
|
self.callService.handleReceivedOffer(thread: thread, callId: offer.id, sessionDescription: offer.description)
|
|
|
|
self.callService.handleReceivedOffer(thread: thread, callId: offer.id, sessionDescription: offer.sessionDescription)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public func receivedAnswer(_ answer: OWSSignalServiceProtosCallMessageAnswer, from callerId: String) {
|
|
|
|
public func receivedAnswer(_ answer: OWSSignalServiceProtosCallMessageAnswer, from callerId: String) {
|
|
|
@ -40,7 +40,7 @@ class WebRTCCallMessageHandler: NSObject, OWSCallMessageHandler {
|
|
|
|
Logger.verbose("\(TAG) handling answer from caller:\(callerId)")
|
|
|
|
Logger.verbose("\(TAG) handling answer from caller:\(callerId)")
|
|
|
|
|
|
|
|
|
|
|
|
let thread = TSContactThread.getOrCreateThread(contactId: callerId)
|
|
|
|
let thread = TSContactThread.getOrCreateThread(contactId: callerId)
|
|
|
|
self.callService.handleReceivedAnswer(thread: thread, callId: answer.id, sessionDescription: answer.description)
|
|
|
|
self.callService.handleReceivedAnswer(thread: thread, callId: answer.id, sessionDescription: answer.sessionDescription)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public func receivedIceUpdate(_ iceUpdate: OWSSignalServiceProtosCallMessageIceUpdate, from callerId: String) {
|
|
|
|
public func receivedIceUpdate(_ iceUpdate: OWSSignalServiceProtosCallMessageIceUpdate, from callerId: String) {
|
|
|
|