initRoomInfo method

void initRoomInfo(
  1. LiveInfo liveInfo
)

Implementation

void initRoomInfo(LiveInfo liveInfo) async {
  state.roomId = liveInfo.liveID;
  state.selfUserId = LoginStore.shared.loginState.loginUserInfo?.userID ?? '';
  state.ownerId.value = liveInfo.liveOwner.userID;
  state.ownerName.value = liveInfo.liveOwner.userName;
  state.ownerAvatarUrl.value = liveInfo.liveOwner.avatarURL;
  _syncUserFollowingStatus(liveInfo.liveOwner.userID);
}