hasAlreadyAcceptedConsent method
bool
hasAlreadyAcceptedConsent(
)
Implementation
bool hasAlreadyAcceptedConsent() {
final participant = room.localParticipant;
final localId = participant?.identity;
final existing = participantListForConsent.firstWhere(
(p) => p.participantId == localId,
orElse: () => ConsentParticipant(
participantId: localId ?? '',
participantName: participant?.name,
participantAvatar: Utils.getInitials(participant?.name),
consent: null,
),
);
return parseConsentStatus(existing.consent) == ConsentStatus.accept;
}