openclaw-wechat-channel 0.4.0 → 0.4.2
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.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -387,7 +387,7 @@ function convertToMessageContext(payload) {
|
|
|
387
387
|
const msgType = resolveMessageType(messageType);
|
|
388
388
|
const isGroup = isGroupMessage(messageType);
|
|
389
389
|
const result = {
|
|
390
|
-
id: String(norm.newMsgId
|
|
390
|
+
id: norm.newMsgId ? String(norm.newMsgId) : `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`,
|
|
391
391
|
type: msgType,
|
|
392
392
|
sender: {
|
|
393
393
|
id: norm.fromUser,
|