mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
[WIP] Conference calls
This commit is contained in:
parent
0648ffbb2a
commit
3e74304640
17 changed files with 1290 additions and 423 deletions
|
|
@ -260,10 +260,13 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
|||
case let .peer(peerId):
|
||||
let currentGroupCall: Signal<PresentationGroupCall?, NoError> = callManager.currentGroupCallSignal
|
||||
|> distinctUntilChanged(isEqual: { lhs, rhs in
|
||||
return lhs?.internalId == rhs?.internalId
|
||||
return lhs == rhs
|
||||
})
|
||||
|> map { call -> PresentationGroupCall? in
|
||||
guard let call = call, call.peerId == peerId && call.account.peerId == context.account.peerId else {
|
||||
guard case let .group(call) = call else {
|
||||
return nil
|
||||
}
|
||||
guard call.peerId == peerId && call.account.peerId == context.account.peerId else {
|
||||
return nil
|
||||
}
|
||||
return call
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue