Close note context menu as soon as the confirmation dialog appears

This commit is contained in:
Bojan Mojsilovic 2023-07-31 17:55:15 +02:00
parent 503ca6996a
commit e4fc7cd6f9

View File

@ -168,13 +168,19 @@ const NoteHeader: Component<{ note: PrimalNote, openCustomZap?: () => void}> = (
const noteContextForOtherPeople: MenuItem[] = [
{
label: intl.formatMessage(tActions.noteContext.muteAuthor),
action: () => setConfirmMuteUser(true),
action: () => {
setConfirmMuteUser(true);
setContext(false);
},
icon: 'mute_user',
warning: true,
},
{
label: intl.formatMessage(tActions.noteContext.reportAuthor),
action: () => setConfirmReportUser(true),
action: () => {
setConfirmReportUser(true);
setContext(false);
},
icon: 'report',
warning: true,
},