Avatar defaults and colors

This commit is contained in:
Josh Perez
2021-08-05 20:17:05 -04:00
committed by GitHub
parent a001882d58
commit 12d2b1bf7c
140 changed files with 4212 additions and 1084 deletions

View File

@@ -4,6 +4,7 @@
import { v4 as generateUuid } from 'uuid';
import { sample } from 'lodash';
import { ConversationType } from '../../state/ducks/conversations';
import { getRandomColor } from './getRandomColor';
const FIRST_NAMES = [
'James',
@@ -323,6 +324,7 @@ export function getDefaultConversation(
return {
acceptedMessageRequest: true,
e164: '+1300555000',
color: getRandomColor(),
firstName,
id: generateUuid(),
isGroupV2Capable: true,