Skip to content

Commit b201a29

Browse files
author
Jaesung
authored
Merge pull request #41 from sendbird/feature/jaesung/sendbirdcall-delegate
Remove duplicated action: Adding SendBirdCallDelegate
2 parents 1e40113 + bf24061 commit b201a29

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

QuickStart/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3434
SendBirdCall.configure(appId: appId)
3535
}
3636

37-
// You must call `SendBirdCall.addDelegate(_:identifier:)` right after configuring new app ID
37+
// To process incoming call, you need to add `SendBirdCallDelegate` and implement its protocol methods.
3838
SendBirdCall.addDelegate(self, identifier: "com.sendbird.calls.quickstart.delegate")
3939

4040
self.voipRegistration()

QuickStart/SignIn/SignInWithQRViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ extension SignInWithQRViewController: SignInDelegate {
8686
// Delegate method
8787
func didSignIn(appId: String, userId: String, accessToken: String?) {
8888
SendBirdCall.configure(appId: appId)
89-
// You must call `SendBirdCall.addDelegate(_:identifier:)` right after configuring new app ID
90-
if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
91-
SendBirdCall.addDelegate(appDelegate, identifier: "com.sendbird.calls.quickstart.delegate")
92-
}
9389

9490
UserDefaults.standard.appId = appId
9591
UserDefaults.standard.user.id = userId

0 commit comments

Comments
 (0)