Skip to content

Commit 9025a2a

Browse files
author
Jaesung
authored
Merge pull request #44 from sendbird/feature/jaesung/call-history-2
Call History
2 parents 8fa0460 + b71364f commit 9025a2a

File tree

63 files changed

+958
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+958
-43
lines changed

QuickStart.xcodeproj/project.pbxproj

Lines changed: 54 additions & 32 deletions
Large diffs are not rendered by default.

QuickStart/AppDelegate+SendBirdCallsDelegates.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Copyright © 2020 SendBird, Inc. All rights reserved..
66
//
77

8+
import UIKit
89
import CallKit
910
import SendBirdCalls
1011

@@ -39,5 +40,10 @@ extension AppDelegate: SendBirdCallDelegate, DirectCallDelegate {
3940
}
4041

4142
CXCallManager.shared.endCall(for: callId, endedAt: Date(), reason: call.endResult)
43+
44+
guard let callLog = call.callLog else { return }
45+
UserDefaults.standard.callHistories.insert(CallHistory(callLog: callLog), at: 0)
46+
47+
CallHistoryViewController.main?.updateCallHistories()
4248
}
4349
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "btnCallVideoTertiary.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"filename" : "[email protected]",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "universal",
15+
"filename" : "[email protected]",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}
830 Bytes
1.55 KB
2.54 KB
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "btnCallVideoTertiaryDisabled.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"scale" : "2x",
10+
"filename" : "[email protected]",
11+
"idiom" : "universal"
12+
},
13+
{
14+
"filename" : "[email protected]",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}
786 Bytes
1.49 KB
2.47 KB

0 commit comments

Comments
 (0)