Self-hosted AI workspace.
Python
Email row: fix crash from leftover menu-wrap wiring after button removal
pewdiepie-archdaemon9f75b408171e
diff --git a/static/js/emailInbox.js b/static/js/emailInbox.jsindex a07ed0c9e..6278574d1 100644--- a/static/js/emailInbox.js+++ b/static/js/emailInbox.js@@ -562,17 +562,10 @@ function _createEmailItem(em) {// Click to open — do NOT close sidebaritem.addEventListener('click', (e) => {- if (e.target.closest('.email-menu-wrap')) return;if (item.dataset.swipeBlock === '1') return;_openEmail(em, item);});- const menuWrap = item.querySelector('.email-menu-wrap');- menuWrap.addEventListener('click', (e) => {- e.stopPropagation();- _showEmailMenu(em, menuWrap, item);- });-// Swipe left to archive (mobile). Mirrors sidebar-layout.js swipe pattern.if ('ontouchstart' in window) {let startX = 0, startY = 0, dx = 0, dy = 0, swiping = false, swiped = false;@@ -580,7 +573,6 @@ function _createEmailItem(em) {const VERT_CANCEL = 30; // px vertical motion cancels swipe (treat as scroll)item.addEventListener('touchstart', (e) => {- if (e.target.closest('.email-menu-wrap')) return;const t = e.touches[0];startX = t.clientX; startY = t.clientY;dx = 0; dy = 0; swiping = true; swiped = false;