locallyUpdateRecordingConsentStatus method
Implementation
void locallyUpdateRecordingConsentStatus(bool status) {
final localId = room.localParticipant?.identity;
final index = participantListForConsent.indexWhere(
(p) => p.participantId == localId,
);
if (index != -1) {
participantListForConsent[index] =
participantListForConsent[index].copyWith(
consent: status ? "accept" : "reject",
);
notifyListeners();
}
}