Clean up conversations with UUID as E164
This commit is contained in:
parent
a22dcc986f
commit
8951665554
4 changed files with 23 additions and 11 deletions
|
@ -3,7 +3,6 @@
|
|||
|
||||
import { ConversationType } from '../state/ducks/conversations';
|
||||
import { format, isValidNumber } from '../types/PhoneNumber';
|
||||
import { normalizeUuid } from './normalizeUuid';
|
||||
|
||||
type FormattedContact = Partial<ConversationType> &
|
||||
Pick<
|
||||
|
@ -32,7 +31,7 @@ export function findAndFormatContact(identifier?: string): FormattedContact {
|
|||
}
|
||||
|
||||
const contactModel = window.ConversationController.get(
|
||||
normalizeUuid(identifier, 'findAndFormatContact')
|
||||
identifier.toLowerCase()
|
||||
);
|
||||
if (contactModel) {
|
||||
return contactModel.format();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue