Page MenuHomePhabricator

D10589.id35462.diff
No OneTemporary

D10589.id35462.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
@@ -47,6 +47,8 @@
} from '../actions/thread-actions.js';
import { updateMultimediaMessageMediaActionType } from '../actions/upload-actions.js';
import {
+ keyserverAuthActionTypes,
+ tempIdentityLoginActionTypes,
logOutActionTypes,
deleteKeyserverAccountActionTypes,
logInActionTypes,
@@ -745,6 +747,31 @@
threads: processedMessageStore.threads,
},
};
+ } else if (action.type === tempIdentityLoginActionTypes.success) {
+ const { messageStoreOperations, messageStore: freshStore } =
+ freshMessageStore([], {}, {}, newThreadInfos);
+
+ const processedMessageStore = processMessageStoreOperations(
+ messageStore,
+ messageStoreOperations,
+ );
+
+ return {
+ messageStoreOperations,
+ messageStore: {
+ ...freshStore,
+ messages: processedMessageStore.messages,
+ threads: processedMessageStore.threads,
+ },
+ };
+ } else if (action.type === keyserverAuthActionTypes.success) {
+ const { messagesResult } = action.payload;
+ return mergeNewMessages(
+ messageStore,
+ messagesResult.messageInfos,
+ messagesResult.truncationStatus,
+ newThreadInfos,
+ );
} else if (action.type === incrementalStateSyncActionType) {
if (
action.payload.messagesResult.rawMessageInfos.length === 0 &&

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 3:55 PM (17 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2431349
Default Alt Text
D10589.id35462.diff (1 KB)

Event Timeline