Skip to content

Commit f96e91d

Browse files
TangjianingAbySwifter
authored andcommitted
【iOS】update to version 2.6.3.
1 parent b709b7a commit f96e91d

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

iOS/Example/App/AppDelegate.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import TUIRoomKit
1212
import TIMPush
1313

1414
#if DEBUG
15-
let businessID: Int32 = 0
15+
let offlinePushBusinessID: Int32 = 0
1616
#else
17-
let businessID: Int32 = 0
17+
let offlinePushBusinessID: Int32 = 0
1818
#endif
1919

2020
@main
@@ -60,7 +60,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
6060

6161
extension AppDelegate: TIMPushDelegate {
6262
func offlinePushCertificateID() -> Int32 {
63-
return businessID
63+
return offlinePushBusinessID
6464
}
6565

6666
func onRemoteNotificationReceived(_ notice: String?) -> Bool {

iOS/TUIRoomKit/Source/Common/Components/FloatChat/View/FloatChatMessageView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ class FloatChatMessageView: UIView {
7777
}
7878

7979
private func getAttributedText(from message: FloatChatMessage) -> NSMutableAttributedString {
80-
let userName = message.user.userName + ": "
80+
var userName = message.user.userName.isEmpty ? message.user.userId : message.user.userName
81+
userName = userName + ": "
8182
let userNameAttributes: [NSAttributedString.Key: Any] = [.font: UIFont.systemFont(ofSize: 12),
8283
.foregroundColor: UIColor.tui_color(withHex: "B2BBD1")]
8384
let userNameAttributedText = NSMutableAttributedString(string: userName,

iOS/TUIRoomKit/Source/View/ViewModel/ConferenceMainViewModel.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@ extension ConferenceMainViewModel: ConferenceMainViewFactory {
494494
func makeFloatChatButton() -> FloatChatButton {
495495
let floatchatButton = FloatChatButton()
496496
floatchatButton.isHidden = !store.shouldShowFloatChatView
497+
if store.isEnteredRoom {
498+
floatchatButton.updateRoomId(roomId: store.roomInfo.roomId)
499+
}
497500
return floatchatButton
498501
}
499502

iOS/TUIRoomKit/TUIRoomKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |spec|
33
spec.name = 'TUIRoomKit'
4-
spec.version = '2.6.0'
4+
spec.version = '2.6.3'
55
spec.platform = :ios
66
spec.ios.deployment_target = '13.0'
77
spec.license = { :type => 'MIT', :file => 'LICENSE' }

0 commit comments

Comments
 (0)