Meeting Notes: Fix Permission Check
summary
Currently, if there are no participants with write access, the own users are displayed as they have write access (ticked) in the MeetingNotesTab.
We should fix the selectAllMeetingNotesParticipants selector and remove the fallback that caused the incorrect UI
interface
const allMeetingNotesParticipants = participants.filter(
(participant) => participant.participationKind !== ParticipationKind.Sip
);
const hasSelectedParticipants = some(allMeetingNotesParticipants, [
'meetingNotesAccess',
MeetingNotesAccess.Write,
]);
const newParticipants = allMeetingNotesParticipants.map((participant): MeetingNotesParticipant => {
const isSelected = hasSelectedParticipants
? participant.meetingNotesAccess === MeetingNotesAccess.Write
: participant.id === user.id;
return {
id: participant.id,
displayName: participant.displayName,
avatarUrl: participant.avatarUrl,
isSelected,
};
});