90f4e0b746
Signed-off-by: dab246 <tdvu@linagora.com>
1.3 KiB
1.3 KiB
62. Fix offline cache prevents updating email query view on mobile
Date: 2025-04-03
Status
Context
- When we perform too many actions on multiple emails
(Mark as read, mark as star, move, delete, etc.),Email/getfrom the value ofEmail/changeswill throw an error.
[
"error",
{
"type": "requestTooLarge",
"description": "Too many items in an email read at level FULL. Got 183 items instead of maximum 100."
},
"c2"
]
- Some emails in the
updateof theEmail/changeresponse were not found inEmail/get. But we still update newState of email.
Decision
- To solve this problem we propose the most optimal solution which is
We will add a
Clean cache & Get all emailsaction when the user performsPull down to refresh
Now when user performs Pull down to refresh action. There will be 2 actions performed
- If the drag distance is shorter
< 200pxwill performRefreshaction (Just call get all emails) - If the drag distance is shorter
>= 200pxwill performDeep Refreshaction (Call clean cache and get all emails)
Consequences
- No lost emails when displayed on list on mobile