- {item(t("mail.reply"), () => onReply("reply"))}
- {item(t("mail.replyAll"), () => onReply("reply_all"))}
- {item(t("mail.forward"), () => onReply("forward"))}
- {item(t("mail.forwardAsAttachment"), () => onReply("forward"))}
+ {item(t("mail.reply"), () => onReply("reply"), replyDisabled)}
+ {item(t("mail.replyAll"), () => onReply("reply_all"), replyDisabled)}
+ {item(t("mail.forward"), () => onReply("forward"), replyDisabled)}
+ {item(t("mail.forwardAsAttachment"), () => onReply("forward"), replyDisabled)}
{item(t("mail.print"), onPrint)}
{item(t("mail.delete"), onDelete)}
@@ -199,6 +214,7 @@ function MessageItem({
boxClassName,
zIndex,
showReplyBar,
+ canReply,
onToggle,
onReply,
onToggleRead,
@@ -214,6 +230,7 @@ function MessageItem({
boxClassName: string;
zIndex: number;
showReplyBar: boolean;
+ canReply: boolean;
onToggle: () => void;
onReply: (kind: string) => void;
onToggleRead: () => void;
@@ -321,14 +338,21 @@ function MessageItem({
}`}
/>
-
-
+ {canReply && (
+
+ )}
+