Voice Chat UI improvements

This commit is contained in:
Ilya Laktyushin
2020-12-02 07:49:51 +04:00
parent 811f6981ca
commit 7d3353c01b
12 changed files with 5906 additions and 5657 deletions

View File

@@ -640,8 +640,6 @@ public final class SharedAccountContextImpl: SharedAccountContext {
if let call = call {
mainWindow.hostView.containerView.endEditing(true)
let groupCallController = VoiceChatController(sharedContext: strongSelf, accountContext: call.accountContext, call: call)
groupCallController.sourcePanel = call.sourcePanel
call.sourcePanel = nil
strongSelf.groupCallController = groupCallController
strongSelf.mainWindow?.present(groupCallController, on: .calls)
strongSelf.hasOngoingCall.set(true)
@@ -987,7 +985,6 @@ public final class SharedAccountContextImpl: SharedAccountContext {
}
} else if let groupCallController = self.groupCallController {
if groupCallController.isNodeLoaded && groupCallController.view.superview == nil {
groupCallController.sourcePanel = sourcePanel
mainWindow.hostView.containerView.endEditing(true)
mainWindow.present(groupCallController, on: .calls)
}