Page MenuHomePhabricator

D4205.diff
No OneTemporary

D4205.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
@@ -1311,14 +1311,6 @@
`message ${id} did not contain media with ID ${currentMediaID}`,
);
- const updatedMessageStore = {
- ...messageStore,
- messages: {
- ...messageStore.messages,
- [id]: updatedMessage,
- },
- };
-
const messageStoreOperations = [
{
type: 'replace',
@@ -1334,13 +1326,13 @@
messageStoreOperations,
);
- assertMessageStoreMessagesAreEqual(
- processedMessageStore,
- updatedMessageStore,
- action.type,
- );
-
- return { messageStoreOperations, messageStore: updatedMessageStore };
+ return {
+ messageStoreOperations,
+ messageStore: {
+ ...messageStore,
+ messages: processedMessageStore.messages,
+ },
+ };
} else if (action.type === createLocalMessageActionType) {
const messageInfo = ensureRealizedThreadIDIsUsedWhenPossible(
action.payload,

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 3:47 PM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677864
Default Alt Text
D4205.diff (1 KB)

Event Timeline