onRemoteUserEnterRoom method

void onRemoteUserEnterRoom(
  1. String roomId,
  2. TUIUserInfo userInfo
)

Implementation

void onRemoteUserEnterRoom(String roomId, TUIUserInfo userInfo) {
  if (userInfo.userId == roomState.ownerInfo.userId) {
    return;
  }
  userState.addUser(userInfo);
}