Skip to content

Commit 0c7c73a

Browse files
author
Isaac
committed
Fix call panel
(cherry picked from commit ebdd7b3)
1 parent 239862c commit 0c7c73a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

submodules/TelegramBaseController/Sources/TelegramBaseController.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
287287
}
288288
}
289289
|> distinctUntilChanged(isEqual: { lhs, rhs in
290-
if lhs.0 != rhs.0 {
291-
return false
292-
}
293-
return true
290+
return lhs.0 == rhs.0
294291
})
295292
|> mapToSignal { activeCall, peer -> Signal<GroupCallPanelData?, NoError> in
296293
guard let activeCall = activeCall else {
@@ -457,7 +454,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
457454
} else {
458455
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
459456
groupCallAccessoryPanel = GroupCallNavigationAccessoryPanel(context: self.context, presentationData: presentationData, tapAction: { [weak self] in
460-
guard let strongSelf = self else {
457+
guard let strongSelf = self, let groupCallPanelData = strongSelf.groupCallPanelData else {
461458
return
462459
}
463460
strongSelf.joinGroupCall(

0 commit comments

Comments
 (0)