mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix call panel
This commit is contained in:
parent
56058e73f0
commit
ebdd7b37ed
1 changed files with 2 additions and 5 deletions
|
|
@ -287,10 +287,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
|||
}
|
||||
}
|
||||
|> distinctUntilChanged(isEqual: { lhs, rhs in
|
||||
if lhs.0 != rhs.0 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return lhs.0 == rhs.0
|
||||
})
|
||||
|> mapToSignal { activeCall, peer -> Signal<GroupCallPanelData?, NoError> in
|
||||
guard let activeCall = activeCall else {
|
||||
|
|
@ -457,7 +454,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
|||
} else {
|
||||
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
|
||||
groupCallAccessoryPanel = GroupCallNavigationAccessoryPanel(context: self.context, presentationData: presentationData, tapAction: { [weak self] in
|
||||
guard let strongSelf = self else {
|
||||
guard let strongSelf = self, let groupCallPanelData = strongSelf.groupCallPanelData else {
|
||||
return
|
||||
}
|
||||
strongSelf.joinGroupCall(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue