Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3298549
D4204.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
D4204.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
@@ -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
Details
Attached
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)
Attached To
Mode
D4204: [lib] Update `messageStore.messages` with `msgStoreOps` for createLocalMessage
Attached
Detach File
Event Timeline
Log In to Comment