Display user badges

This commit is contained in:
Evan Hahn 2021-11-02 18:01:13 -05:00 committed by GitHub
parent 927c22ef73
commit f647c4e053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
95 changed files with 2891 additions and 424 deletions

View file

@ -8,6 +8,7 @@ type FormattedContact = Partial<ConversationType> &
Pick<
ConversationType,
| 'acceptedMessageRequest'
| 'badges'
| 'id'
| 'isMe'
| 'sharedGroupNames'
@ -18,6 +19,7 @@ type FormattedContact = Partial<ConversationType> &
const PLACEHOLDER_CONTACT: FormattedContact = {
acceptedMessageRequest: false,
badges: [],
id: 'placeholder-contact',
isMe: false,
sharedGroupNames: [],
@ -47,6 +49,7 @@ export function findAndFormatContact(identifier?: string): FormattedContact {
return {
acceptedMessageRequest: false,
badges: [],
id: 'phone-only',
isMe: false,
phoneNumber,