@onyx-p/imlib-web 1.6.2 → 1.6.4

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/index.esm.js CHANGED
@@ -13560,6 +13560,7 @@ class WebSocketServer {
13560
13560
  this.onDisconnect(ConnectionStatus.BLOCKED);
13561
13561
  return;
13562
13562
  }
13563
+ console.log('onReceiveMessage----------');
13563
13564
  const messageSeq = Long.isLong(networkResponse.messageSeq) ? networkResponse.messageSeq.toNumber() : 0;
13564
13565
  const resolve = messageSeq > 0 ? this.responseCallbacks.get(messageSeq) : null;
13565
13566
  if (isDef(resolve)) {
@@ -17471,7 +17472,7 @@ const GetNewSettingDialogListResp = $root$1.GetNewSettingDialogListResp = (() =>
17471
17472
  };
17472
17473
  return GetNewSettingDialogListResp;
17473
17474
  })();
17474
- const NewMessageNotificationResp = $root$1.NewMessageNotificationResp = (() => {
17475
+ $root$1.NewMessageNotificationResp = (() => {
17475
17476
  /**
17476
17477
  * Properties of a NewMessageNotificationResp.
17477
17478
  * @exports INewMessageNotificationResp
@@ -20122,8 +20123,7 @@ class LibLoader {
20122
20123
  }
20123
20124
  messageListener(cmdId, body) {
20124
20125
  if (cmdId === CmdIds$1.NewMessagePush) {
20125
- const newMsgNotiResp = NewMessageNotificationResp.decode(body);
20126
- this.messageLoader?.syncMsg(newMsgNotiResp.seqno);
20126
+ console.log('messageListener: new message push');
20127
20127
  } else if (cmdId === CmdIds$1.DialogChangedPush) {
20128
20128
  ConversationManager$1.get().syncConversationStatus();
20129
20129
  } else {
package/index.umd.js CHANGED
@@ -13566,6 +13566,7 @@
13566
13566
  this.onDisconnect(exports.ConnectionStatus.BLOCKED);
13567
13567
  return;
13568
13568
  }
13569
+ console.log('onReceiveMessage----------');
13569
13570
  const messageSeq = Long.isLong(networkResponse.messageSeq) ? networkResponse.messageSeq.toNumber() : 0;
13570
13571
  const resolve = messageSeq > 0 ? this.responseCallbacks.get(messageSeq) : null;
13571
13572
  if (isDef(resolve)) {
@@ -17477,7 +17478,7 @@
17477
17478
  };
17478
17479
  return GetNewSettingDialogListResp;
17479
17480
  })();
17480
- const NewMessageNotificationResp = $root$1.NewMessageNotificationResp = (() => {
17481
+ $root$1.NewMessageNotificationResp = (() => {
17481
17482
  /**
17482
17483
  * Properties of a NewMessageNotificationResp.
17483
17484
  * @exports INewMessageNotificationResp
@@ -20128,8 +20129,7 @@
20128
20129
  }
20129
20130
  messageListener(cmdId, body) {
20130
20131
  if (cmdId === CmdIds$1.NewMessagePush) {
20131
- const newMsgNotiResp = NewMessageNotificationResp.decode(body);
20132
- this.messageLoader?.syncMsg(newMsgNotiResp.seqno);
20132
+ console.log('messageListener: new message push');
20133
20133
  } else if (cmdId === CmdIds$1.DialogChangedPush) {
20134
20134
  ConversationManager$1.get().syncConversationStatus();
20135
20135
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",