From 03a2b3c3c9ba4a446d3119de53478437064f82e8 Mon Sep 17 00:00:00 2001 From: Jeremiahandsome <995164912@qq.com> Date: Tue, 3 Dec 2024 14:53:26 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90TUILiveKit=E3=80=91=E3=80=90iOS?= =?UTF-8?q?=E3=80=91Fix=20the=20issue=20where=20the=20host=20does=20not=20?= =?UTF-8?q?go=20live=20when=20entering=20an=20already=20created=20room.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/LiveStreamCore/Sources/Manager/Module/RoomManager.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iOS/LiveStreamCore/Sources/Manager/Module/RoomManager.swift b/iOS/LiveStreamCore/Sources/Manager/Module/RoomManager.swift index 3f7f3737..d79fc708 100644 --- a/iOS/LiveStreamCore/Sources/Manager/Module/RoomManager.swift +++ b/iOS/LiveStreamCore/Sources/Manager/Module/RoomManager.swift @@ -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()