mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix call panel
This commit is contained in:
parent
56058e73f0
commit
ebdd7b37ed
@ -287,10 +287,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|> distinctUntilChanged(isEqual: { lhs, rhs in
|
|> distinctUntilChanged(isEqual: { lhs, rhs in
|
||||||
if lhs.0 != rhs.0 {
|
return lhs.0 == rhs.0
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
})
|
})
|
||||||
|> mapToSignal { activeCall, peer -> Signal<GroupCallPanelData?, NoError> in
|
|> mapToSignal { activeCall, peer -> Signal<GroupCallPanelData?, NoError> in
|
||||||
guard let activeCall = activeCall else {
|
guard let activeCall = activeCall else {
|
||||||
@ -457,7 +454,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
|||||||
} else {
|
} else {
|
||||||
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
|
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
|
||||||
groupCallAccessoryPanel = GroupCallNavigationAccessoryPanel(context: self.context, presentationData: presentationData, tapAction: { [weak self] in
|
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
|
return
|
||||||
}
|
}
|
||||||
strongSelf.joinGroupCall(
|
strongSelf.joinGroupCall(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user