openzca 0.1.30 → 0.1.31
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/cli.js +12 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1566,6 +1566,10 @@ function parseRecentMessageTs(value) {
|
|
|
1566
1566
|
if (Number.isFinite(parsed)) {
|
|
1567
1567
|
return Math.trunc(parsed);
|
|
1568
1568
|
}
|
|
1569
|
+
const parsedDate = Date.parse(trimmed);
|
|
1570
|
+
if (Number.isFinite(parsedDate)) {
|
|
1571
|
+
return Math.trunc(parsedDate);
|
|
1572
|
+
}
|
|
1569
1573
|
}
|
|
1570
1574
|
return 0;
|
|
1571
1575
|
}
|
|
@@ -3269,10 +3273,18 @@ msg.command("recent <threadId>").option("-g, --group", "List recent messages for
|
|
|
3269
3273
|
const rows = messages.map((message) => ({
|
|
3270
3274
|
msgId: message.data.msgId,
|
|
3271
3275
|
cliMsgId: message.data.cliMsgId,
|
|
3276
|
+
threadId: message.threadId || threadId,
|
|
3277
|
+
threadType: message.type === ThreadType.Group ? "group" : "user",
|
|
3272
3278
|
senderId: message.data.uidFrom,
|
|
3273
3279
|
senderName: message.data.dName,
|
|
3274
3280
|
ts: message.data.ts,
|
|
3275
3281
|
msgType: message.data.msgType,
|
|
3282
|
+
undo: {
|
|
3283
|
+
msgId: message.data.msgId,
|
|
3284
|
+
cliMsgId: message.data.cliMsgId,
|
|
3285
|
+
threadId: message.threadId || threadId,
|
|
3286
|
+
group: message.type === ThreadType.Group
|
|
3287
|
+
},
|
|
3276
3288
|
content: typeof message.data.content === "string" ? message.data.content : JSON.stringify(message.data.content)
|
|
3277
3289
|
}));
|
|
3278
3290
|
if (opts.json) {
|