checkForMaxUser method

void checkForMaxUser({
  1. int? uid,
})

Implementation

void checkForMaxUser({int? uid}) {
  if (uid == value.mainAgoraUser.uid) {
    value = value.copyWith(
      mainAgoraUser: AgoraUser(
        uid: value.localUid,
        remote: false,
        muted: value.isLocalUserMuted,
        videoDisabled: value.isLocalVideoDisabled,
        clientRoleType: ClientRoleType.clientRoleBroadcaster,
      ),
    );
  }
  removeUser(uid: value.localUid);
}