feat(pairing): show sender ids across providers
This commit is contained in:
@@ -317,6 +317,10 @@ export async function monitorSignalProvider(
|
||||
const senderRecipient = resolveSignalRecipient(sender);
|
||||
const senderPeerId = resolveSignalPeerId(sender);
|
||||
const senderAllowId = formatSignalSenderId(sender);
|
||||
const senderIdLine =
|
||||
sender.kind === "phone"
|
||||
? `Your Signal number: ${sender.e164}`
|
||||
: `Your Signal sender id: ${senderAllowId}`;
|
||||
if (!senderRecipient) return;
|
||||
const groupId = dataMessage.groupInfo?.groupId ?? undefined;
|
||||
const groupName = dataMessage.groupInfo?.groupName ?? undefined;
|
||||
@@ -351,6 +355,8 @@ export async function monitorSignalProvider(
|
||||
[
|
||||
"Clawdbot: access not configured.",
|
||||
"",
|
||||
senderIdLine,
|
||||
"",
|
||||
`Pairing code: ${code}`,
|
||||
"",
|
||||
"Ask the bot owner to approve with:",
|
||||
|
||||
Reference in New Issue
Block a user