revert last commit

pull/1770/head
Brice-W 4 years ago
parent 21b8b9f35b
commit 03891a9438

@ -223,10 +223,6 @@ export const getUnreadMessageCount = createSelector(getLeftPaneLists, (state): n
});
export const getNumberOfPinnedConversations = createSelector(getConversations, (state): number => {
let count = 0;
for (let key in state.conversationLookup) {
let value = state.conversationLookup[key];
if (value.isPinned) count++;
}
return count;
const values = Object.values(state.conversationLookup);
return values.filter(conversation => conversation.isPinned).length;
});

Loading…
Cancel
Save