Profile name spoofing dialog
This commit is contained in:
parent
814255c10e
commit
e7ef3de6d0
21 changed files with 893 additions and 15 deletions
|
@ -89,6 +89,18 @@ export const getConversationsByGroupId = createSelector(
|
|||
}
|
||||
);
|
||||
|
||||
const getAllConversations = createSelector(
|
||||
getConversationLookup,
|
||||
(lookup): Array<ConversationType> => Object.values(lookup)
|
||||
);
|
||||
|
||||
export const getConversationsByTitleSelector = createSelector(
|
||||
getAllConversations,
|
||||
(conversations): ((title: string) => Array<ConversationType>) => (
|
||||
title: string
|
||||
) => conversations.filter(conversation => conversation.title === title)
|
||||
);
|
||||
|
||||
export const getSelectedConversationId = createSelector(
|
||||
getConversations,
|
||||
(state: ConversationsStateType): string | undefined => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue