




















@@ -47,19 +47,19 @@ describe("resolveConversationLabel", () => {
4747name: "does not append ids when the base already contains the id",
4848ctx: {
4949ChatType: "group",
50-GroupSubject: "Family id:123@g.us",
51-From: "whatsapp:group:123@g.us",
50+GroupSubject: "Family id:room-123@example",
51+From: "demo-channel:group:room-123@example",
5252},
53-expected: "Family id:123@g.us",
53+expected: "Family id:room-123@example",
5454},
5555{
56-name: "appends ids for WhatsApp-like group ids when a subject exists",
56+name: "appends opaque address-like ids when a subject exists",
5757ctx: {
5858ChatType: "group",
5959GroupSubject: "Family",
60-From: "whatsapp:group:123@g.us",
60+From: "demo-channel:group:room-123@example",
6161},
62-expected: "Family id:123@g.us",
62+expected: "Family id:room-123@example",
6363},
6464] satisfies Array<{ name: string; ctx: MsgContext; expected: string }>)(
6565"$name",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。