mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Don't return busy signal to untrusted callers.
// FREEBIE
This commit is contained in:
parent
e50a9e40fa
commit
3bc73bea25
1 changed files with 9 additions and 9 deletions
|
@ -470,15 +470,6 @@ protocol CallServiceObserver: class {
|
|||
|
||||
let newCall = SignalCall.incomingCall(localId: UUID(), remotePhoneNumber: thread.contactIdentifier(), signalingId: callId)
|
||||
|
||||
guard self.call == nil else {
|
||||
// TODO on iOS10+ we can use CallKit to swap calls rather than just returning busy immediately.
|
||||
Logger.info("\(TAG) receivedCallOffer for thread: \(thread) but we're already in call: \(call!)")
|
||||
|
||||
handleLocalBusyCall(newCall, thread: thread)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
let untrustedIdentity = OWSIdentityManager.shared().untrustedIdentityForSending(toRecipientId: thread.contactIdentifier())
|
||||
|
||||
guard untrustedIdentity == nil else {
|
||||
|
@ -509,6 +500,15 @@ protocol CallServiceObserver: class {
|
|||
|
||||
return
|
||||
}
|
||||
|
||||
guard self.call == nil else {
|
||||
// TODO on iOS10+ we can use CallKit to swap calls rather than just returning busy immediately.
|
||||
Logger.info("\(TAG) receivedCallOffer for thread: \(thread) but we're already in call: \(call!)")
|
||||
|
||||
handleLocalBusyCall(newCall, thread: thread)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Logger.info("\(TAG) starting new call: \(newCall)")
|
||||
|
||||
|
|
Loading…
Reference in a new issue