2021-11-01 19:13:35 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
// We prevent circular loops between ducks and selectors/components with `import type`.
|
|
|
|
// For example, Selectors are used in action creators using thunk/getState, but those
|
|
|
|
// Selectors need types from the ducks. Selectors shouldn't use code from ducks.
|
|
|
|
//
|
|
|
|
// But enums can be used as types but also as code. So we keep them out of the ducks.
|
|
|
|
|
|
|
|
export enum ComposerStep {
|
|
|
|
StartDirectConversation = 'StartDirectConversation',
|
2024-02-08 23:19:03 +00:00
|
|
|
FindByUsername = 'FindByUsername',
|
|
|
|
FindByPhoneNumber = 'FindByPhoneNumber',
|
2021-11-01 19:13:35 +00:00
|
|
|
ChooseGroupMembers = 'ChooseGroupMembers',
|
|
|
|
SetGroupMetadata = 'SetGroupMetadata',
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum OneTimeModalState {
|
|
|
|
NeverShown,
|
|
|
|
Showing,
|
|
|
|
Shown,
|
|
|
|
}
|
2022-02-16 18:36:21 +00:00
|
|
|
|
|
|
|
export enum ConversationVerificationState {
|
|
|
|
PendingVerification = 'PendingVerification',
|
|
|
|
VerificationCancelled = 'VerificationCancelled',
|
|
|
|
}
|
2022-11-09 20:18:03 +00:00
|
|
|
|
2023-03-20 22:23:53 +00:00
|
|
|
export enum TargetedMessageSource {
|
2022-11-09 20:18:03 +00:00
|
|
|
Reset = 'Reset',
|
|
|
|
NavigateToMessage = 'NavigateToMessage',
|
|
|
|
Focus = 'Focus',
|
|
|
|
}
|