mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 16:05:39 +00:00
fix: trust an invitation only on checks aligned with its sender and stop flagging colleagues' invitations
This commit is contained in:
@@ -156,8 +156,8 @@ export function CalendarInvitationBanner({ email, jmapAccountId }: Props) {
|
||||
}, [storeEvents, event?.uid, serverMatch]);
|
||||
|
||||
const trust = React.useMemo(
|
||||
() => (event ? getInvitationTrustAssessment(event, email, method) : null),
|
||||
[event, email, method],
|
||||
() => (event ? getInvitationTrustAssessment(event, email, method, currentUserEmails) : null),
|
||||
[event, email, method, currentUserEmails],
|
||||
);
|
||||
|
||||
if (!attachment || !enabled || state === 'error') return null;
|
||||
|
||||
Reference in New Issue
Block a user