-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lib][web] Await lastUpdatedTime and update ChatThreadItems if different
Summary: In D13913, I said: > For now, in this diff we're ignoring any messages whose `MessageSpec.getLastUpdatedTime` returns a `Promise`, and assuming it's the same as if it returned `null`. In later diffs we'll update the logic to be smarter. In this diff we address this. When the `ThreadStore` changes, `useFilteredChatListData` now has the potential to issue two updates: the first with the "initial" value before any promises are resolved, and the second with the "final" value after resolving all promises. Depends on D13915 Test Plan: Tested in combination with the rest of the stack. See video in D13918 Reviewers: tomek Reviewed By: tomek Differential Revision: https://phab.comm.dev/D13916
- Loading branch information
Showing
2 changed files
with
188 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters