Fix call panel

(cherry picked from commit ebdd7b37ed92b0e36a58ed8633c1f3ca1851f1ad)
This commit is contained in:
Isaac 2025-04-17 22:01:19 +04:00
parent 239862cae2
commit 0c7c73a3e9

View File

@ -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(