do not create the convo when fetching avatar.

if the convo is not here, it's likely it was removed by the user itself.
pull/1381/head
Audric Ackermann 4 years ago
parent 1bb99ac3df
commit 98e7d50b73
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -472,10 +472,12 @@ export function reducer(
if (action.type === 'CONVERSATION_REMOVED') {
const { payload } = action;
const { id } = payload;
const { conversationLookup } = state;
const { conversationLookup, selectedConversation } = state;
return {
...state,
conversationLookup: omit(conversationLookup, [id]),
selectedConversation:
selectedConversation === id ? undefined : selectedConversation,
};
}
if (action.type === 'CONVERSATIONS_REMOVE_ALL') {

Loading…
Cancel
Save