@bobfrankston/rmfmail 1.2.235 → 1.2.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4971,6 +4971,7 @@ init_api_client();
4971
4971
  init_edit_commands();
4972
4972
  init_context_menu();
4973
4973
  installConsoleCapture();
4974
+ connectEvents();
4974
4975
  logClientEvent("compose-module-loaded", { href: location.href, version: window.mailxVersion || "?" });
4975
4976
  var _composeT0 = performance.now();
4976
4977
  function _ctick(label) {
@@ -6773,9 +6774,13 @@ function showExternalEditHint(editorLabel) {
6773
6774
  }
6774
6775
  onEvent((ev) => {
6775
6776
  if (ev?.type !== "wordEditUpdated") return;
6776
- if (!wordEditId || ev.editId !== wordEditId) return;
6777
+ if (!wordEditId || ev.editId !== wordEditId) {
6778
+ console.log(`[word-edit] ignoring save for ${ev.editId} \u2014 this window is ${wordEditId || "(no session)"}`);
6779
+ return;
6780
+ }
6777
6781
  try {
6778
6782
  extEditHintClose?.();
6783
+ console.log(`[word-edit] applying mirrored save: ${(ev.html || "").length} chars (editId ${ev.editId})`);
6779
6784
  editor.setHtml(ev.html || "");
6780
6785
  showDraftStatus("Reloaded edits from external editor.", false);
6781
6786
  scheduleDraftSave();