@bobfrankston/rmfmail 1.2.192 → 1.2.193

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.
@@ -9261,6 +9261,12 @@ async function performUndo() {
9261
9261
  await undeleteMessage(m.accountId, m.uid, m.folderId);
9262
9262
  }
9263
9263
  if (statusSync) statusSync.textContent = msgs.length === 1 ? "Message restored" : `Restored ${msgs.length} messages`;
9264
+ const first = msgs[0];
9265
+ if (first?.folderId) {
9266
+ await revealMessage(first.accountId, first.folderId, first.uid);
9267
+ syncChromeToListView();
9268
+ return;
9269
+ }
9264
9270
  } else if (op.kind === "move") {
9265
9271
  const { messages: messages2 } = op.payload;
9266
9272
  const byDest = /* @__PURE__ */ new Map();
@@ -9275,6 +9281,12 @@ async function performUndo() {
9275
9281
  else await moveMessages2(group.accountId, group.uids, group.folderId);
9276
9282
  }
9277
9283
  if (statusSync) statusSync.textContent = `Undid move of ${messages2.length} message${messages2.length !== 1 ? "s" : ""}`;
9284
+ const firstMoved = messages2[0];
9285
+ if (firstMoved?.sourceFolderId) {
9286
+ await revealMessage(firstMoved.accountId, firstMoved.sourceFolderId, firstMoved.uid);
9287
+ syncChromeToListView();
9288
+ return;
9289
+ }
9278
9290
  } else if (op.kind === "flag") {
9279
9291
  const { updateFlags: updateFlags2 } = await Promise.resolve().then(() => (init_api_client(), api_client_exports));
9280
9292
  for (const entry of op.payload) {
@@ -9943,6 +9955,9 @@ async function closeSearchAndReveal() {
9943
9955
  } else {
9944
9956
  reloadCurrentFolder();
9945
9957
  }
9958
+ syncChromeToListView();
9959
+ }
9960
+ function syncChromeToListView() {
9946
9961
  const vw = getCurrentView();
9947
9962
  if (vw.unified) {
9948
9963
  highlightFolder(null, -1);