Support phone number sharing flag on profile
This commit is contained in:
parent
23f39a0dc7
commit
d71da5c486
16 changed files with 155 additions and 33 deletions
|
@ -11,6 +11,7 @@ import {
|
|||
getSourceServiceId,
|
||||
} from '../messages/helpers';
|
||||
import { isDirectConversation, isGroupV2 } from './whatTypeOfConversation';
|
||||
import { getE164 } from './getE164';
|
||||
|
||||
export function getMessageIdForLogging(
|
||||
message: Pick<
|
||||
|
@ -29,8 +30,8 @@ export function getConversationIdForLogging(
|
|||
conversation: ConversationAttributesType
|
||||
): string {
|
||||
if (isDirectConversation(conversation)) {
|
||||
const { serviceId, pni, e164, id } = conversation;
|
||||
return `${serviceId || pni || e164} (${id})`;
|
||||
const { serviceId, pni, id } = conversation;
|
||||
return `${serviceId || pni || getE164(conversation)} (${id})`;
|
||||
}
|
||||
if (isGroupV2(conversation)) {
|
||||
return `groupv2(${conversation.groupId})`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue