Skip to content

Commit 33ba038

Browse files
author
Jaesung
committed
Resolve PR
1 parent e18d92a commit 33ba038

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

QuickStart/CallHistory/CallHistory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct CallHistory: Codable {
3535
let remoteUser = callLog.myRole == .caller ? callLog.callee : callLog.caller
3636
self.remoteUserProfileURL = remoteUser?.profileURL
3737
self.remoteUserID = remoteUser?.userId ?? "Unknown"
38-
self.remoteNickname = remoteUser?.nickname.unwrap(with: "-") ?? "-"
38+
self.remoteNickname = (remoteUser?.nickname).unwrap(with: "-")
3939

4040
self.startedAt = CallHistory.dateFormatter.string(from: Date(timeIntervalSince1970: Double(callLog.startedAt) / 1000))
4141
self.duration = callLog.duration.timerText()

QuickStart/CallHistory/CallHistoryViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class CallHistoryViewController: UIViewController, UITableViewDataSource, UITabl
132132
extension CallHistoryViewController {
133133
// When select table view cell, make a call based on its `CallHistory` information.
134134
func didTapCallHistoryCell(_ cell: CallHistoryTableViewCell) {
135-
guard let remoteUserID = cell.remoteUserIDLabel.text?.replacingOccurrences(of: "User ID: ", with: "") else { return }
135+
let remoteUserID = cell.callHistory.remoteUserID
136136
let isVideoCall = cell.callHistory.hasVideo
137137
let dialParams = DialParams(calleeId: remoteUserID,
138138
isVideoCall: isVideoCall,

0 commit comments

Comments
 (0)