@agent-wechat/agent-wechat 1.0.0-beta.18 → 1.0.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1434,6 +1434,8 @@ function recalledNativeMessage(message, recall) {
|
|
|
1434
1434
|
|
|
1435
1435
|
// src/native-quote.ts
|
|
1436
1436
|
function sameEmbeddedQuote(stored, current) {
|
|
1437
|
+
if (stored.state === "unsupported" && current.state === "embedded")
|
|
1438
|
+
return ["serverId", "type", "appMessageType", "senderId", "direction"].every((field) => (stored[field] ?? null) === (current[field] ?? null));
|
|
1437
1439
|
const compared = { ...current };
|
|
1438
1440
|
for (const field of ["embeddedLink", "embeddedSticker"]) {
|
|
1439
1441
|
if (!Object.hasOwn(stored, field)) delete compared[field];
|