Page MenuHomePhorge

D14157.1765163730.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D14157.1765163730.diff

diff --git a/lib/selectors/chat-selectors.js b/lib/selectors/chat-selectors.js
--- a/lib/selectors/chat-selectors.js
+++ b/lib/selectors/chat-selectors.js
@@ -115,10 +115,17 @@
getCandidateSidebarItemsForThreadList(sidebars);
const lastUpdatedTimeIncludingSidebarsPromise = (async () => {
- const candidateSidebarItems = await candidateSidebarItemsPromise;
- const lastUpdatedTimes = candidateSidebarItems.map(
- sidebarItem => sidebarItem.lastUpdatedTime,
- );
+ const [lastUpdatedTimeResult, candidateSidebarItems] =
+ await Promise.all([
+ lastUpdatedTimePromise,
+ candidateSidebarItemsPromise,
+ ]);
+ const lastUpdatedTimes = [
+ lastUpdatedTimeResult,
+ ...candidateSidebarItems.map(
+ sidebarItem => sidebarItem.lastUpdatedTime,
+ ),
+ ];
const max = lastUpdatedTimes.reduce((a, b) => Math.max(a, b), -1);
return max;
})();

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 8, 3:15 AM (8 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5843460
Default Alt Text
D14157.1765163730.diff (1 KB)

Event Timeline