issue: ENG-9633
Details
Tested that when a user is missing a device list the accountMissingStatus is set. Checked that lastChecked is updated with next requests but missingSince stays the same.
checked that if non-empty a device list is returned by identity, accountMissingStatus is removed.
checked that further requests for the same user are stopped for 20s.
checked that if a user that has a recent lastChecked is picked in search (triggering onSelectUserFromSearch which calls useUsersSupportThickThreads) they are not queried for
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
When I first proposed this approach, I had in mind that we would modify useGetAndUpdateDeviceListsForUsers:
We could modify useGetAndUpdateDeviceListsForUsers so that before we query for a user's device lists, we first check lastChecked, and skip the check if it's sufficiently recent.
Can you explain it your approach here a bit more? I'm curious:
- How you selected these callsites in particular
- Why we're not modifying useGetAndUpdateDeviceListsForUsers