Conversation: Prevent getProps errors on initial link
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
parent
e4a632f601
commit
f226822dff
8 changed files with 51 additions and 36 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// Copyright 2020-2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export const AvatarColors = [
|
||||
|
@ -93,3 +93,15 @@ export type AvatarColorType = typeof AvatarColors[number];
|
|||
export type ConversationColorType =
|
||||
| typeof ConversationColors[number]
|
||||
| 'custom';
|
||||
|
||||
export type DefaultConversationColorType = {
|
||||
color: ConversationColorType;
|
||||
customColorData?: {
|
||||
id: string;
|
||||
value: CustomColorType;
|
||||
};
|
||||
};
|
||||
|
||||
export const DEFAULT_CONVERSATION_COLOR: DefaultConversationColorType = {
|
||||
color: 'ultramarine',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue