oicq-icalingua-plus-plus 1.22.4 → 1.22.5

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.
@@ -473,9 +473,13 @@ class Parser {
473
473
  };
474
474
  let seq = elem[1], user_id = elem[2];
475
475
  if (this.gid) {
476
- let m = (await getGroupMsgs.call(this.c, this.gid, seq, seq))[0];
477
- let random = m[3][1][1][3];
478
- let time = m[1][6];
476
+ let random = elem[8] ? genRandom(elem[8][3]) : null;
477
+ let time = elem[3];
478
+ if (!random || !time) {
479
+ let m = (await getGroupMsgs.call(this.c, this.gid, seq, seq))[0];
480
+ random = m[3][1][1][3];
481
+ time = m[1][6];
482
+ }
479
483
  msg.data.id = genGroupMessageId(this.gid, user_id, seq, random, time);
480
484
  } else {
481
485
  let random = genRandom(elem[8][3]);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "oicq-icalingua-plus-plus",
3
3
  "app_name": "oicq-icalingua-plus-plus",
4
- "version": "1.22.4",
4
+ "version": "1.22.5",
5
5
  "app_version": "1.22.4",
6
- "upday": "2022/05/20",
6
+ "upday": "2022/06/04",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
9
9
  "main": "index.js",