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 @@ -840,17 +840,10 @@ } else if ( action.type === changeThreadSettingsActionTypes.success || action.type === removeUsersFromThreadActionTypes.success || - action.type === changeThreadMemberRolesActionTypes.success - ) { - return mergeNewMessages( - messageStore, - action.payload.newMessageInfos, - { [action.payload.threadID]: messageTruncationStatus.UNCHANGED }, - newThreadInfos, - ); - } else if ( + action.type === changeThreadMemberRolesActionTypes.success || action.type === createEntryActionTypes.success || - action.type === saveEntryActionTypes.success + action.type === saveEntryActionTypes.success || + action.type === restoreEntryActionTypes.success ) { return mergeNewMessages( messageStore, @@ -868,14 +861,6 @@ newThreadInfos, ); } - } else if (action.type === restoreEntryActionTypes.success) { - const { threadID } = action.payload; - return mergeNewMessages( - messageStore, - action.payload.newMessageInfos, - { [threadID]: messageTruncationStatus.UNCHANGED }, - newThreadInfos, - ); } else if (action.type === joinThreadActionTypes.success) { const messagesResult = mergeUpdatesWithMessageInfos( action.payload.rawMessageInfos,