snappymail/dev
SebaSalvaG e4ecda0e61 Don't reset the message list to page 1 and clear the search on message.show
The `mailbox.message.show` handler rewrote the hash to `mailBox(sFolder)` --
page 1, no search -- even when the user was already in that folder.

Because the hash of an open message carries the message id and the new one does
not, the two differ, the route fires again, the message is shown again, and the
handler runs again: a loop. Every iteration aborts whatever message list request
was pending, so browsing to page 2 or running a search silently bounces back to
page 1 of the INBOX with an empty search box.

Only navigate when we are not already in that folder. Clicking a new-mail
notification from another folder still takes you to the INBOX; if the message is
not in the current page, the else branch already opens it in the preview pane
without touching the list.

The same unconditional setHash a few lines below, for non-INBOX folders, gets
the same guard.
2026-08-23 22:38:40 +02:00
..
App Resolve #1849 2024-11-26 02:47:17 +01:00
Common Update Html.js to remove x-html tags before rendering 2024-12-07 09:37:33 +09:00
Component Everything to ES2020 2024-04-02 22:24:53 +02:00
DAV Everything to ES2020 2024-04-02 22:24:53 +02:00
External ko.utils.domNodeDisposal.addDisposeCallback to ko.addDisposeCallback 2024-10-29 22:19:26 +01:00
Knoin Centralize tryToClose() for all popups 2024-08-06 21:41:52 +02:00
Mime Bugfix: mime parser headerValue() is null 2024-04-02 22:40:12 +02:00
Model Resolve #1849 2024-11-26 02:47:17 +01:00
Remote Change handling of (token) errors due to #1706 2024-08-16 22:05:15 +02:00
Screen Added "copy to" action in menu's for #1559 2024-04-28 17:32:25 +02:00
Settings Resolve #1828 2024-11-11 23:57:41 +01:00
Sieve Prepare for #1793 2024-10-08 17:49:21 +02:00
Storage Added for #1545 2024-06-10 12:28:58 +02:00
Stores Proper fix for default sortMode 2024-10-23 00:39:01 +02:00
Styles Small change for #1948 to make it relative to font size 2025-06-16 17:21:26 +02:00
View Don't reset the message list to page 1 and clear the search on message.show 2026-08-23 22:38:40 +02:00
admin.js Cleanup AppUser and AdminApp 2022-03-31 17:39:53 +02:00
app.js Cleanup AppUser and AdminApp 2022-03-31 17:39:53 +02:00
boot.js Change handling of (token) errors due to #1706 2024-08-16 22:05:15 +02:00
bootstrap.js Moved rl.fetch and rl.fetchJSON to boot.js so that AppData can be fetched as JSON 2023-02-21 09:04:47 +01:00
dragdropgecko.js Everything to ES2020 2024-04-02 22:24:53 +02:00
prototype.js Bugfix: MIME parser RegExp didn't escape boundary which caused issues 2024-02-26 17:36:55 +01:00
serviceworker.js Changes for https://github.com/the-djmaze/snappymail/issues/37 2020-11-09 20:14:04 +01:00
shortcuts.js Log current shortcuts scope for #690 2022-11-21 13:20:59 +01:00
sieve.js Change handling of (token) errors due to #1706 2024-08-16 22:05:15 +02:00