onSeatsUserChanged method
void
onSeatsUserChanged()
Implementation
void onSeatsUserChanged() {
final seatUserIDs = <String>[];
seatManager?.seatsUserMapNotifier.value.forEach((seatIndex, seatUserID) {
seatUserIDs.add(seatUserID);
});
final listeningUserIDs = <String>[];
microphoneMuteStateNotifierMap.forEach((userID, notifier) {
listeningUserIDs.add(userID);
});
for (var userID in listeningUserIDs) {
if (!seatUserIDs.contains(userID)) {
removeMicrophoneMuteStateNotifier(ZegoUIKit().getUser(userID));
}
}
}