Page MenuHomePhabricator

D4204.diff
No OneTemporary

D4204.diff

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
@@ -1363,17 +1363,6 @@
lastPruned: now,
};
- const updatedMessageStore = {
- ...messageStore,
- messages: {
- ...messageStore.messages,
- [localID]: messageInfo,
- },
- threads: {
- ...messageStore.threads,
- [threadID]: threadState,
- },
- };
const messageStoreOperations = [
{
type: 'replace',
@@ -1386,13 +1375,17 @@
messageStoreOperations,
);
- assertMessageStoreMessagesAreEqual(
- updatedMessageStore,
- processedMessageStore,
- action.type,
- );
-
- return { messageStoreOperations, messageStore: updatedMessageStore };
+ return {
+ messageStoreOperations,
+ messageStore: {
+ ...messageStore,
+ threads: {
+ ...messageStore.threads,
+ [threadID]: threadState,
+ },
+ messages: processedMessageStore.messages,
+ },
+ };
} else if (action.type === rehydrateActionType) {
// When starting the app on native, we filter out any local-only multimedia
// messages because the relevant context is no longer available

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 6:49 AM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534202
Default Alt Text
D4204.diff (1 KB)

Event Timeline