Usernames: Create/update/delete in profile editor
This commit is contained in:
parent
a9cb621eb6
commit
3190f95fac
38 changed files with 923 additions and 89 deletions
|
@ -6,6 +6,7 @@ import { fromPairs, isNumber } from 'lodash';
|
|||
import { createSelector } from 'reselect';
|
||||
|
||||
import type { StateType } from '../reducer';
|
||||
|
||||
import type {
|
||||
ConversationLookupType,
|
||||
ConversationMessageType,
|
||||
|
@ -15,7 +16,8 @@ import type {
|
|||
MessagesByConversationType,
|
||||
PreJoinConversationType,
|
||||
} from '../ducks/conversations';
|
||||
import { ComposerStep, OneTimeModalState } from '../ducks/conversations';
|
||||
import type { UsernameSaveState } from '../ducks/conversationsEnums';
|
||||
import { ComposerStep, OneTimeModalState } from '../ducks/conversationsEnums';
|
||||
import { getOwn } from '../../util/getOwn';
|
||||
import { isNotNil } from '../../util/isNotNil';
|
||||
import { deconstructLookup } from '../../util/deconstructLookup';
|
||||
|
@ -161,6 +163,13 @@ export const getSelectedMessage = createSelector(
|
|||
}
|
||||
);
|
||||
|
||||
export const getUsernameSaveState = createSelector(
|
||||
getConversations,
|
||||
(state: ConversationsStateType): UsernameSaveState => {
|
||||
return state.usernameSaveState;
|
||||
}
|
||||
);
|
||||
|
||||
export const getShowArchived = createSelector(
|
||||
getConversations,
|
||||
(state: ConversationsStateType): boolean => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue