SearchEmailNotifier consumes interactors through the shared seam (auto routing across all intents); SearchEmailController gates its retry toast with isUrgentException; SearchEmailResult drops the pendingUrgentException field and reverts to pure display state.
consumeInteractor centralizes interactor result folding with automatic urgent-exception routing (ADR-0103) for Riverpod notifiers bypassing consumeState. isUrgentException mirrors that routing's resolution so consumers can suppress fallback UI without re-routing.
- _runLoadMore drops emails already in the list (_dropAlreadyLoaded) so a same-timestamp page boundary never duplicates rows.
- Rename SearchEmailResult.loadMoreException to pendingUrgentException and have _runRefresh surface it like _runLoadMore, so the notifier no longer routes urgent exceptions itself; SearchEmailController._routePendingUrgentException handles load-more and refresh through the same path as a full-search error.
- _applySearchResult rebuilds the presentation list only when result.emails changes identity, skipping the map/combine/sync on load-more spinner toggles.
onClose already released the two keepAlive result providers but left the committed searchFilterProvider intact, leaking a stale filter into the next search session.
The mobile-search branch reads a defensive copy of the provider list, so the in-place keyword update must be written back via setResultSearches; the mailbox branch mutates the live RxList directly.
No production caller: clearSearchFilter routes through SearchController to also
drop the obs mirror's stale cursors, never the bare notifier clear. Fix the mixin
header that still referenced the removed draft notifier.
Drop the _updateCommittedFilter passthrough and _updateKeywordsSearchFilter;
call notifier.update and the toggleStarred/addSender/removeSender/addRecipient/
removeRecipient helpers directly so no call site rebuilds the filter sets.
Bind searchInputController to searchFilterProvider.text bidirectionally:
edits push through updateFilterEmail, and the committed-filter mirror
writes the term back (guarded, trimmed-compare) so the search bar and
the advanced 'has the words' field always agree. searchEmailByQueryString
clears text when routing a bare email to the from filter.
Route SearchController.quickSearchEmails through the committed
SearchEmailFilter's mappingToEmailFilterCondition so the suggestion
and result screens share one filter set. Drops the partial
_mappingToFilterOnSuggestionForm that silently ignored mailbox,
subject, to/cc/bcc, notKeyword, unread, label, multi-from and events.
Passes trashSpamMailboxIds; removes the now-redundant ownEmailAddress.
The com:linagora:params:jmap:aibot capability is no longer specific to
AI Scribe: Needs Action and auto-labeling rely on it too. Keeping the
constant in the scribe package under a Scribe-flavored name coupled
unrelated AI features to the Scribe feature module.
Closes#4682
Return bool from _handleUrgentException and skip _showEmptyFolderFailureToast when the exception was urgent-handled, preventing double UX (generic toast + re-login prompt).
pendingSharedFileInfo is a BehaviorSubject, so a handled share stayed
buffered until dashboard teardown and would replay to any future
(re)subscriber, re-opening the composer with an already-processed
share. Clear the pending value as soon as a non-empty share is taken
for processing; the empty-list guard prevents recursion and the
teardown clear remains as defense in depth.
Android delivers both literal shared text (EXTRA_TEXT) and shared
text-format files like .vcf/.ics/.csv (EXTRA_STREAM) with a text/* mime
and SharedMediaType.text, so mime-based routing cannot tell them apart:
a shared calendar or contact file opened the composer with its cache
path as the body. Route by checking whether the payload is a real file
on disk instead, replacing the vCard-only mime special case.
text/x-vcard shares carrying MIME parameters (e.g. ";charset=utf-8") or
different casing failed the exact-match check and fell into the content
branch, pasting a raw .vcf file path into the composer body instead of
attaching the contact. Normalize the MIME type (strip parameters, trim,
lowercase) before matching.
Expose the share handler as visibleForTesting and add controller tests for
vCard / text-plain / text-html routing, plus manager coverage that an
EventChannel error is swallowed and later shares still deliver.
Dashboard onClose closed the singleton EmailReceiveManager's BehaviorSubject.
After a close/reopen cycle (logout/login, route recreation) the next dashboard
subscribed to the dead subject; a later live share then landed on a freshly
recreated subject the listener never subscribed to, so the composer never
opened. Clear pending data by emitting an empty list instead of closing, so
the subject lives for the singleton's lifetime and keeps delivering shares.
Subscribe to the live media stream before resolving getInitialMedia, and
apply the cold-start result only when non-empty. A share can land on the
live EventChannel before getInitialMedia resolves; on a normal (non-share)
launch getInitialMedia returns empty, so applying it unconditionally
overwrote the just-arrived share — silently dropping warm-app shares that
land while startup is still settling.
Also add onError/catchError logging to both media sources and a
deterministic regression test that gates getInitialMedia behind a Completer
to reproduce the race.