diff --git a/src/components/EmailListPanel.tsx b/src/components/EmailListPanel.tsx index 0733e4e..e9a5ddf 100644 --- a/src/components/EmailListPanel.tsx +++ b/src/components/EmailListPanel.tsx @@ -743,9 +743,6 @@ export default function EmailListPanel({ dispatchUnreadCountEvent("read", ids); try { await bulkMarkAsRead(ids); - showToast({ - message: ids.length === 1 ? "Marked as read" : `${ids.length} messages marked as read`, - }); router.refresh(); } catch { showToast({ message: "Could not mark those messages as read.", tone: "error" }); @@ -762,9 +759,6 @@ export default function EmailListPanel({ dispatchUnreadCountEvent("unread", ids); try { await bulkMarkAsUnread(ids); - showToast({ - message: ids.length === 1 ? "Marked as unread" : `${ids.length} messages marked as unread`, - }); router.refresh(); } catch { showToast({ message: "Could not mark those messages as unread.", tone: "error" }); @@ -884,7 +878,6 @@ export default function EmailListPanel({ if (view === "inbox") dispatchUnreadCountEvent("read", ids); try { await bulkMarkAsRead(ids); - showToast({ message: "Marked as read" }); } catch { showToast({ message: "Could not mark that thread as read.", tone: "error" }); } @@ -898,7 +891,6 @@ export default function EmailListPanel({ if (view === "inbox") dispatchUnreadCountEvent("unread", ids); try { await bulkMarkAsUnread(ids); - showToast({ message: "Marked as unread" }); } catch { showToast({ message: "Could not mark that thread as unread.", tone: "error" }); } diff --git a/src/components/MarkUnreadButton.tsx b/src/components/MarkUnreadButton.tsx index 3d4909f..a066d32 100644 --- a/src/components/MarkUnreadButton.tsx +++ b/src/components/MarkUnreadButton.tsx @@ -22,7 +22,6 @@ export default function MarkUnreadButton({ emailId }: Props) { // Signal EmailListPanel to remove this email from its optimistic-read set window.dispatchEvent(new CustomEvent("email-mark-unread", { detail: emailId })); dispatchUnreadCountEvent("unread", [emailId]); - showToast({ message: "Marked as unread" }); router.push("/"); } catch { showToast({