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