A first Email/query page shorter than the limit means the mailbox is
exhausted unless collapseThreads is on. Forcing canLoadMore whenever the
list did not fill the viewport sent a useless 'before' Email/query on
every open or refresh of a small folder.
Closes#4943
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A transient GetAllLabel failure cleared the labels list, which made the
mailbox observer switch away from a still-existing selected label.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Deleting the label currently displayed left the thread list filtered on a
dead label and kept ?labelId=<deleted id> in the URL.
MailboxController now watches the label list and, when the selected label
mailbox is no longer part of it (deleted locally, via websocket, or labels
disabled), switches back to the Inbox and updates the browser URL, like
folder deletion does.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Sort identities with a stable sort so identities sharing the same
sortOrder keep the server order (Dart's List.sort is not stable and the
previous comparator never returned 0).
- In the identity creator, default the Email field to the owner email
address when present, falling back to the first available address.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Summernote only binds Tab to list nesting when tabDisable is set, and even
then it inserts spaces. Register a keydown handler on the web editor that:
- delegates Tab / Shift+Tab inside a list item to the Summernote
indent / outdent commands (same as the toolbar buttons);
- outdents an empty nested list item on Enter instead of leaving the list,
like Gmail. Enter on an empty top-level item still exits the list.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The destination picker only exposed team mailboxes for move actions, so the
advanced-search folder-scope picker (MailboxActions.select) could not target
a team mailbox or its folders, neither in the tree nor in folder search.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Cover isEmailBodyNotReady and isEditedEmailContentLoadFailed, including
the EmptyEmailContentException case.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Inline image restoration may fail while the saved body is non-empty,
leaving an empty editor. Only EmptyEmailContentException means the
saved body was genuinely empty.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sending a reopened draft before its body has loaded sent an empty mail
and deleted the draft. Block send while the email content is still
loading or the editor is not ready, and tell the user to wait.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The toggle log was captured before the new consent was applied, so on
opt-in the SDK was still stopped and the event was dropped. Apply the
consent first and log once the SDK lifecycle transition completes.