Make sure that storySendMode is in group types
This commit is contained in:
parent
fa2fd5eef3
commit
a2f1b469ea
10 changed files with 101 additions and 110 deletions
|
@ -4,20 +4,7 @@
|
|||
import type { ConversationType } from '../state/ducks/conversations';
|
||||
import { format, isValidNumber } from '../types/PhoneNumber';
|
||||
|
||||
type FormattedContact = Partial<ConversationType> &
|
||||
Pick<
|
||||
ConversationType,
|
||||
| 'acceptedMessageRequest'
|
||||
| 'badges'
|
||||
| 'id'
|
||||
| 'isMe'
|
||||
| 'sharedGroupNames'
|
||||
| 'title'
|
||||
| 'type'
|
||||
| 'unblurredAvatarPath'
|
||||
>;
|
||||
|
||||
const PLACEHOLDER_CONTACT: FormattedContact = {
|
||||
const PLACEHOLDER_CONTACT: ConversationType = {
|
||||
acceptedMessageRequest: false,
|
||||
badges: [],
|
||||
id: 'placeholder-contact',
|
||||
|
@ -27,7 +14,7 @@ const PLACEHOLDER_CONTACT: FormattedContact = {
|
|||
type: 'direct',
|
||||
};
|
||||
|
||||
export function findAndFormatContact(identifier?: string): FormattedContact {
|
||||
export function findAndFormatContact(identifier?: string): ConversationType {
|
||||
if (!identifier) {
|
||||
return PLACEHOLDER_CONTACT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue