Refractoring Stage 6.12 Bumped the version to 0.4.24 (Android version code 424) and removed the snooze UI’s implicit global call to the productivity label action; it now uses the productivity feature API.

This commit is contained in:
2026-10-16 22:14:37 +03:00
parent e80f285e8c
commit 26d79fd836
8 changed files with 15 additions and 6 deletions
+1
View File
@@ -85,6 +85,7 @@ window.epMailFeatures.productivity = Object.freeze({
renderContacts,
showEvent,
showContact,
addMessageLabel,
setProfileName,
openAccountSettings,
get openPreferences() { return openPreferences; },
+2 -1
View File
@@ -1,4 +1,5 @@
const snoozeMailUi = window.epMailFeatures.mail;
const snoozeProductivityUi = window.epMailFeatures.productivity;
function localDateTimeValue(date) {
const local = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
@@ -147,7 +148,7 @@ document.addEventListener('click', event => {
snoozeMailUi.select('#modal-root').innerHTML = '';
if (!message) return;
if (action.dataset.messageAction === 'snooze') openSnoozeDialog([message]);
else if (action.dataset.messageAction === 'label') addMessageLabel(message);
else if (action.dataset.messageAction === 'label') snoozeProductivityUi.addMessageLabel(message);
else {
const type = action.dataset.messageAction;
messageAction(message, type).then(() => {