16f362a61a
Signed-off-by: dab246 <tdvu@linagora.com>
713 B
713 B
34. Change the logic to get all mailbox to avoid miss mailbox (#2536)
Date: 2024-02-05
Status
Accepted
Context
- Currently
MailboxRepositoryget the data from local first:- if cache hit
(have mailbox + cache),/changesto update - if cache miss
(no mailbox, no state),/getto update view
- if cache hit
What happen if cache hit, but not have all the data? Yep, this is the issue.
Decision
- Change the logic to get all mailbox
- Get from the local
(support quick response and offline mode)-> yield to UI - Get
Mailbox/getfrom JMAP to update the list of mailbox correctly -> yield to UI
- Get from the local
Consequences
- No more lost mailboxes. The latest mailbox list is always updated.