mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-06 16:15:53 +00:00
fix: read the send hook count safely in the composer's Options menu
This commit is contained in:
@@ -5841,7 +5841,7 @@ export function EmailComposer({
|
||||
)}
|
||||
{/* Encrypting is a crypto plugin's job (S/MIME, PGP). Without
|
||||
one, say where to get it rather than offer nothing. */}
|
||||
{emailHooks.onComposeSend.size === 0 && isFeatureEnabled('pluginsEnabled') && !ownWindow && (
|
||||
{(emailHooks.onComposeSend?.size ?? 0) === 0 && isFeatureEnabled('pluginsEnabled') && !ownWindow && (
|
||||
<ComposerToolbarMenuItem
|
||||
icon={Lock}
|
||||
muted
|
||||
|
||||
Reference in New Issue
Block a user