@@ -186,7 +186,7 @@ final class AuthorizedApplicationContext: NSObject, SplitViewDelegate {
186
186
187
187
private var launchAction : ApplicationContextLaunchAction ?
188
188
189
- init ( window: Window , context: AccountContext , launchSettings: LaunchSettings , callSession: PCallSession ? ) {
189
+ init ( window: Window , context: AccountContext , launchSettings: LaunchSettings , callSession: PCallSession ? , groupCallContext : GroupCallContext ? ) {
190
190
191
191
self . context = context
192
192
emptyController = EmptyChatViewController ( context)
@@ -217,7 +217,7 @@ final class AuthorizedApplicationContext: NSObject, SplitViewDelegate {
217
217
218
218
219
219
rightController. set ( callHeader: CallNavigationHeader ( 35 , initializer: { header -> NavigationHeaderView in
220
- let view = CallNavigationHeaderView ( header)
220
+ let view = GroupCallNavigationHeaderView ( header)
221
221
return view
222
222
} ) )
223
223
@@ -276,6 +276,8 @@ final class AuthorizedApplicationContext: NSObject, SplitViewDelegate {
276
276
277
277
} , callSession: { [ weak self] in
278
278
return ( self ? . rightController. callHeader? . view as? CallNavigationHeaderView ) ? . session
279
+ } , groupCall: { [ weak self] in
280
+ return ( self ? . rightController. callHeader? . view as? GroupCallNavigationHeaderView ) ? . context
279
281
} )
280
282
281
283
@@ -675,6 +677,10 @@ final class AuthorizedApplicationContext: NSObject, SplitViewDelegate {
675
677
context. sharedContext. showCallHeader ( with: session)
676
678
}
677
679
680
+ if let groupCallContext = groupCallContext {
681
+ context. sharedContext. showGroupCall ( with: groupCallContext)
682
+ }
683
+
678
684
self . updateFoldersDisposable. set ( combineLatest ( queue: . mainQueue( ) , chatListFilterPreferences ( postbox: context. account. postbox) , context. sharedContext. layoutHandler. get ( ) ) . start ( next: { [ weak self] value, layout in
679
685
self ? . updateLeftSidebar ( with: value, layout: layout, animated: true )
680
686
} ) )
0 commit comments