Skip to content

Commit 03a2b3c

Browse files
JeremiahandsomeAbySwifter
authored andcommitted
【TUILiveKit】【iOS】Fix the issue where the host does not go live when entering an already created room.
1 parent 7100030 commit 03a2b3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

iOS/LiveStreamCore/Sources/Manager/Module/RoomManager.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ extension RoomManager {
157157
private func onJoinLiveSuccess(roomInfo: TUIRoomInfo) {
158158
updateRoomState(roomInfo: roomInfo)
159159
modifyRoomState(value: .playing, keyPath: \RoomState.liveStatus, isPublished: true)
160+
if context?.userManager.userState.selfInfo.userId == roomInfo.ownerId {
161+
context?.userManager.onStartLiveSuccess()
162+
}
160163
updateOwnerInfo(roomInfo: roomInfo)
161164
Task {
162165
try? await context?.coGuestManager.initConnectedGuestList()

0 commit comments

Comments
 (0)