@onyx-p/imlib-web 1.4.4 → 1.4.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.
- package/index.esm.js +5 -5
- package/index.umd.js +5 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
@@ -9474,7 +9474,7 @@ var CmdIds;
|
|
9474
9474
|
CmdIds[CmdIds["GetSuperGroupRemoteMessages"] = 1610776956] = "GetSuperGroupRemoteMessages";
|
9475
9475
|
CmdIds[CmdIds["DeleteChatMessages"] = 1610682381] = "DeleteChatMessages";
|
9476
9476
|
CmdIds[CmdIds["ClearChatHistoryMessage"] = 1610777164] = "ClearChatHistoryMessage";
|
9477
|
-
CmdIds[CmdIds["GetDialogList"] =
|
9477
|
+
CmdIds[CmdIds["GetDialogList"] = 1610711096] = "GetDialogList";
|
9478
9478
|
CmdIds[CmdIds["GetBriefDialogList"] = 1610682399] = "GetBriefDialogList";
|
9479
9479
|
CmdIds[CmdIds["UpdatePrivateChatMuteConfig"] = 1610682379] = "UpdatePrivateChatMuteConfig";
|
9480
9480
|
CmdIds[CmdIds["UpdateGroupChatMuteConfig"] = 1610747915] = "UpdateGroupChatMuteConfig";
|
@@ -27430,11 +27430,10 @@ class IMClient extends EventEmitter {
|
|
27430
27430
|
if (!aesKey) {
|
27431
27431
|
return;
|
27432
27432
|
}
|
27433
|
-
|
27434
|
-
|
27435
|
-
|
27433
|
+
if (isDef(msg)) {
|
27434
|
+
const latestMessage = ServerMessageParser.parseSingleDialogMessages(dialogId.toString(), [msg], aesKey)[0];
|
27435
|
+
conversationObj.latestMessage = latestMessage;
|
27436
27436
|
}
|
27437
|
-
conversationObj.latestMessage = latestMessage;
|
27438
27437
|
return conversationObj;
|
27439
27438
|
}
|
27440
27439
|
}
|
@@ -28324,6 +28323,7 @@ const getConversationList = async options => {
|
|
28324
28323
|
code,
|
28325
28324
|
data
|
28326
28325
|
} = await imClient.getConversationList(options?.count ?? 20, null, options?.startTime ?? 0, options?.order ?? 0);
|
28326
|
+
debugger;
|
28327
28327
|
if (code !== ErrorCode.SUCCESS) {
|
28328
28328
|
logger.warn('get conversation list fail ->' + code + ':' + ErrorDesc(code));
|
28329
28329
|
}
|
package/index.umd.js
CHANGED
@@ -9480,7 +9480,7 @@
|
|
9480
9480
|
CmdIds[CmdIds["GetSuperGroupRemoteMessages"] = 1610776956] = "GetSuperGroupRemoteMessages";
|
9481
9481
|
CmdIds[CmdIds["DeleteChatMessages"] = 1610682381] = "DeleteChatMessages";
|
9482
9482
|
CmdIds[CmdIds["ClearChatHistoryMessage"] = 1610777164] = "ClearChatHistoryMessage";
|
9483
|
-
CmdIds[CmdIds["GetDialogList"] =
|
9483
|
+
CmdIds[CmdIds["GetDialogList"] = 1610711096] = "GetDialogList";
|
9484
9484
|
CmdIds[CmdIds["GetBriefDialogList"] = 1610682399] = "GetBriefDialogList";
|
9485
9485
|
CmdIds[CmdIds["UpdatePrivateChatMuteConfig"] = 1610682379] = "UpdatePrivateChatMuteConfig";
|
9486
9486
|
CmdIds[CmdIds["UpdateGroupChatMuteConfig"] = 1610747915] = "UpdateGroupChatMuteConfig";
|
@@ -27436,11 +27436,10 @@
|
|
27436
27436
|
if (!aesKey) {
|
27437
27437
|
return;
|
27438
27438
|
}
|
27439
|
-
|
27440
|
-
|
27441
|
-
|
27439
|
+
if (isDef(msg)) {
|
27440
|
+
const latestMessage = ServerMessageParser.parseSingleDialogMessages(dialogId.toString(), [msg], aesKey)[0];
|
27441
|
+
conversationObj.latestMessage = latestMessage;
|
27442
27442
|
}
|
27443
|
-
conversationObj.latestMessage = latestMessage;
|
27444
27443
|
return conversationObj;
|
27445
27444
|
}
|
27446
27445
|
}
|
@@ -28330,6 +28329,7 @@
|
|
28330
28329
|
code,
|
28331
28330
|
data
|
28332
28331
|
} = await imClient.getConversationList(options?.count ?? 20, null, options?.startTime ?? 0, options?.order ?? 0);
|
28332
|
+
debugger;
|
28333
28333
|
if (code !== exports.ErrorCode.SUCCESS) {
|
28334
28334
|
logger.warn('get conversation list fail ->' + code + ':' + ErrorDesc(code));
|
28335
28335
|
}
|