Skip to content

Commit

Permalink
【TUILiveKit】【iOS】Fix the issue where the host does not go live when e…
Browse files Browse the repository at this point in the history
…ntering an already created room.
  • Loading branch information
Jeremiahandsome authored and AbySwifter committed Dec 3, 2024
1 parent 7100030 commit 03a2b3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iOS/LiveStreamCore/Sources/Manager/Module/RoomManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ extension RoomManager {
private func onJoinLiveSuccess(roomInfo: TUIRoomInfo) {
updateRoomState(roomInfo: roomInfo)
modifyRoomState(value: .playing, keyPath: \RoomState.liveStatus, isPublished: true)
if context?.userManager.userState.selfInfo.userId == roomInfo.ownerId {
context?.userManager.onStartLiveSuccess()
}
updateOwnerInfo(roomInfo: roomInfo)
Task {
try? await context?.coGuestManager.initConnectedGuestList()
Expand Down

0 comments on commit 03a2b3c

Please sign in to comment.