Page MenuHomePhabricator

D9879.diff
No OneTemporary

D9879.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
@@ -167,7 +167,12 @@
const { messageStore: freshStore } = freshMessageStore(
rawMessageInfos,
truncationStatuses,
- mostRecentMessageTimestamp(rawMessageInfos, initialTime),
+ {
+ [ashoatKeyserverID]: mostRecentMessageTimestamp(
+ rawMessageInfos,
+ initialTime,
+ ),
+ },
threadInfos,
);
return freshStore;
diff --git a/lib/reducers/message-reducer.js b/lib/reducers/message-reducer.js
--- a/lib/reducers/message-reducer.js
+++ b/lib/reducers/message-reducer.js
@@ -145,7 +145,7 @@
function freshMessageStore(
messageInfos: $ReadOnlyArray<RawMessageInfo>,
truncationStatus: { [threadID: string]: MessageTruncationStatus },
- currentAsOf: number,
+ currentAsOf: { +[keyserverID: string]: number },
threadInfos: RawThreadInfos,
): FreshMessageStoreResult {
const unshimmed = unshimMessageInfos(messageInfos);
@@ -199,7 +199,7 @@
messages,
threads,
local: {},
- currentAsOf: { [ashoatKeyserverID]: currentAsOf },
+ currentAsOf,
},
};
}
@@ -722,7 +722,7 @@
freshMessageStore(
messagesResult.messageInfos,
messagesResult.truncationStatus,
- messagesResult.currentAsOf[ashoatKeyserverID],
+ messagesResult.currentAsOf,
newThreadInfos,
);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 1:16 AM (19 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2587210
Default Alt Text
D9879.diff (1 KB)

Event Timeline