Skip to content

Commit

Permalink
Remove JitsiMeetSDK from NINGroupChatViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiqvik committed Oct 12, 2023
1 parent 9613c20 commit 92e775f
Showing 1 changed file with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
//

import Foundation
import JitsiMeetSDK

protocol NINGroupChatViewModel: AnyObject, NINChatStateProtocol, NINChatMessageProtocol, NINChatPermissionsProtocol, NINChatAttachmentProtocol {
var hasJoinedVideo: Bool { get }
Expand All @@ -24,8 +23,6 @@ protocol NINGroupChatViewModel: AnyObject, NINChatStateProtocol, NINChatMessageP

final class NINGroupChatViewModelImpl: NSObject, NINGroupChatViewModel {
private weak var sessionManager: NINChatSessionManager?
private var pipViewCoordinator: PiPViewCoordinator?
private var jitsiView: JitsiMeetView?
private var jitsiVideoWebView: JitsiVideoWebView?
private var typingStatus = false
private var typingStatusQueue: DispatchWorkItem?
Expand Down Expand Up @@ -156,25 +153,6 @@ final class NINGroupChatViewModelImpl: NSObject, NINGroupChatViewModel {

// Load url request
jitsiVideoWebView?.loadJitsiMeeting(for: urlRequest)

/*
let jitsiMeetView = self.jitsiView ?? JitsiMeetView()
jitsiMeetView.delegate = self
jitsiMeetView.join(options)
if self.pipViewCoordinator == nil {
self.pipViewCoordinator = PiPViewCoordinator(withView: jitsiMeetView)
}
self.pipViewCoordinator?.configureAsStickyView(withParentView: parentView)
jitsiMeetView.alpha = 0
self.jitsiView = jitsiMeetView
self.pipViewCoordinator?.show()
*/

completion(nil)
}
}
Expand Down Expand Up @@ -367,15 +345,7 @@ extension NINGroupChatViewModelImpl {
}
}

// MARK: - Jitsi Delegate

extension NINGroupChatViewModelImpl: JitsiMeetViewDelegate {
func ready(toClose data: [AnyHashable : Any]!) {
leaveVideoCall(force: false)
onGroupVideoReadyToClose?()
}
}

// MARK: - JitsiVideoWebViewDelegate

extension NINGroupChatViewModelImpl: JitsiVideoWebViewDelegate {
func readyToClose() {
Expand Down

0 comments on commit 92e775f

Please sign in to comment.