mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 09:11:26 +00:00
fix: preserve whatsapp group JIDs
This commit is contained in:
@@ -15,6 +15,12 @@ describe("toWhatsappJid", () => {
|
||||
it("converts E164 to jid", () => {
|
||||
expect(toWhatsappJid("+1 555 555 0123")).toBe("15555550123@s.whatsapp.net");
|
||||
});
|
||||
|
||||
it("keeps group JIDs intact", () => {
|
||||
expect(toWhatsappJid("123456789-987654321@g.us")).toBe(
|
||||
"123456789-987654321@g.us",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("assertProvider", () => {
|
||||
|
||||
Reference in New Issue
Block a user