feat(pairing): show sender ids across providers
This commit is contained in:
@@ -284,6 +284,9 @@ describe("monitorIMessageProvider", () => {
|
||||
expect(replyMock).not.toHaveBeenCalled();
|
||||
expect(upsertPairingRequestMock).toHaveBeenCalled();
|
||||
expect(sendMock).toHaveBeenCalledTimes(1);
|
||||
expect(String(sendMock.mock.calls[0]?.[1] ?? "")).toContain(
|
||||
"Your iMessage sender id: +15550001111",
|
||||
);
|
||||
expect(String(sendMock.mock.calls[0]?.[1] ?? "")).toContain(
|
||||
"Pairing code: PAIRCODE",
|
||||
);
|
||||
|
||||
@@ -259,6 +259,8 @@ export async function monitorIMessageProvider(
|
||||
[
|
||||
"Clawdbot: access not configured.",
|
||||
"",
|
||||
`Your iMessage sender id: ${senderId}`,
|
||||
"",
|
||||
`Pairing code: ${code}`,
|
||||
"",
|
||||
"Ask the bot owner to approve with:",
|
||||
|
||||
Reference in New Issue
Block a user