Skip to content

Commit

Permalink
【iOS】update to version 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyuzhao authored and AbySwifter committed Dec 20, 2024
1 parent daeeeb3 commit 15c4df2
Show file tree
Hide file tree
Showing 49 changed files with 3,337 additions and 351 deletions.
17 changes: 0 additions & 17 deletions iOS/Example/App/Main/Resource/Localized/DemoLocalized.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -375,23 +375,6 @@
}
}
},
"The room does not exit, please confirm the room number or create a room!" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "The room does not exit, please confirm the room number or create a room!"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "房间不存在,请确认房间号或创建房间!"
}
}
}
},
"Video" : {
"extractionState" : "manual",
"localizations" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,10 @@ extension CreateRoomViewController {

extension CreateRoomViewController: ConferenceObserver {
func onConferenceStarted(roomInfo: TUIRoomInfo, error: TUIError, message: String) {
if error != .success {
let errorText = "Error: " + String(describing: error) + ", Message: " + message
SceneDelegate.getCurrentWindow()?.makeToast(errorText, duration: 1, position:TUICSToastPositionCenter)
navigationController?.popViewController(animated: true)
}
guard error != .success else { return }
navigationController?.popViewController(animated: true)
guard !message.isEmpty else { return }
SceneDelegate.getCurrentWindow()?.makeToast(message, duration: 1, position:TUICSToastPositionCenter)
}

func onConferenceFinished(roomInfo: TUIRoomInfo, reason: ConferenceFinishedReason) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ extension EnterRoomViewController: ConferenceObserver {
func onConferenceJoined(roomInfo: TUIRoomInfo, error: TUIError, message: String) {
guard error != .success else { return }
navigationController?.popViewController(animated: true)
let toastText = error == .roomIdNotExist ? .roomDoesNotExit : message
guard !toastText.isEmpty else { return }
SceneDelegate.getCurrentWindow()?.makeToast(toastText, duration: 1, position:TUICSToastPositionCenter)
guard !message.isEmpty else { return }
SceneDelegate.getCurrentWindow()?.makeToast(message, duration: 1, position:TUICSToastPositionCenter)
}

func onConferenceFinished(roomInfo: TUIRoomInfo, reason: ConferenceFinishedReason) {
Expand Down Expand Up @@ -200,5 +199,4 @@ private extension String {
static var openSpeakerText: String {
RoomDemoLocalize("Speaker")
}
static let roomDoesNotExit = RoomDemoLocalize("The room does not exit, please confirm the room number or create a room!")
}
2 changes: 1 addition & 1 deletion iOS/Example/App/en.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
*/

"UILaunchStoryboardName" = "LaunchScreen_en";
"CFBundleDisplayName" = "TUIRoom";
"CFBundleDisplayName" = "Conference";
2 changes: 1 addition & 1 deletion iOS/Example/App/zh-Hans.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
*/

"UILaunchStoryboardName" = "LaunchScreen";
"CFBundleDisplayName" = "TUIRoom";
"CFBundleDisplayName" = "多人音视频房间";
Loading

0 comments on commit 15c4df2

Please sign in to comment.