Page MenuHomePhabricator

D13590.diff
No OneTemporary

D13590.diff

diff --git a/keyserver/src/responders/redux-state-responders.js b/keyserver/src/responders/redux-state-responders.js
--- a/keyserver/src/responders/redux-state-responders.js
+++ b/keyserver/src/responders/redux-state-responders.js
@@ -6,7 +6,6 @@
import { baseLegalPolicies } from 'lib/facts/policies.js';
import { daysToEntriesFromEntryInfos } from 'lib/reducers/entry-reducer.js';
import { freshMessageStore } from 'lib/reducers/message-reducer.js';
-import { mostRecentlyReadThread } from 'lib/selectors/thread-selectors.js';
import { mostRecentMessageTimestamp } from 'lib/shared/message-utils.js';
import {
threadHasPermission,
@@ -237,19 +236,13 @@
})();
const navInfoPromise = (async () => {
- const [
- { threadInfos },
- messageStore,
- currentUserInfo,
- userInfos,
- finalNavInfo,
- ] = await Promise.all([
- threadInfoPromise,
- messageStorePromise,
- currentUserInfoPromise,
- userInfosPromise,
- initialNavInfoPromise,
- ]);
+ const [{ threadInfos }, currentUserInfo, userInfos, finalNavInfo] =
+ await Promise.all([
+ threadInfoPromise,
+ currentUserInfoPromise,
+ userInfosPromise,
+ initialNavInfoPromise,
+ ]);
const requestedActiveChatThreadID = finalNavInfo.activeChatThreadID;
if (
@@ -263,16 +256,6 @@
finalNavInfo.activeChatThreadID = null;
}
- if (!finalNavInfo.activeChatThreadID) {
- const mostRecentThread = mostRecentlyReadThread(
- messageStore,
- threadInfos,
- );
- if (mostRecentThread) {
- finalNavInfo.activeChatThreadID = mostRecentThread;
- }
- }
-
const curActiveChatThreadID = finalNavInfo.activeChatThreadID;
if (
curActiveChatThreadID &&

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 1:28 PM (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2561447
Default Alt Text
D13590.diff (1 KB)

Event Timeline