updateUserAudioState method

void updateUserAudioState(
  1. String userId,
  2. bool hasAudio,
  3. TUIChangeReason reason,
  4. RxList<UserModel> destList,
)

Implementation

void updateUserAudioState(String userId, bool hasAudio,
    TUIChangeReason reason, RxList<UserModel> destList) {
  var index = getUserIndex(userId, destList);
  if (index == -1) {
    return;
  }
  destList[index].hasAudioStream.value = hasAudio;
}