Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3491314
D4205.id13652.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4205.id13652.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 6:50 PM (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677864
Default Alt Text
D4205.id13652.diff (1 KB)
Attached To
Mode
D4205: [lib] Update `messageStore.messages` with `msgStoreOps` for updateMultimediaMessageMedia
Attached
Detach File
Event Timeline
Log In to Comment