@onyx-p/imlib-web 2.0.4 → 2.0.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 +4 -4
- package/index.umd.js +4 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
@@ -28704,9 +28704,9 @@ class IMClient extends EventEmitter {
|
|
28704
28704
|
});
|
28705
28705
|
}
|
28706
28706
|
async getPreviousHistoryMessages(conversation, timestamp, count = 20) {
|
28707
|
-
|
28707
|
+
logger.warn('getPreviousHistoryMessages', conversation, timestamp, count);
|
28708
28708
|
const cachedResult = MessageCache.get().getPreviousMessages(conversation, timestamp ?? '0', count);
|
28709
|
-
|
28709
|
+
logger.warn('getPreviousHistoryMessages cachedResult', cachedResult);
|
28710
28710
|
if (!timestamp && cachedResult.messages.length) {
|
28711
28711
|
ConversationManager$1.get().refreshLatestMessage(conversation, cachedResult.messages[cachedResult.messages.length - 1]);
|
28712
28712
|
}
|
@@ -28724,7 +28724,7 @@ class IMClient extends EventEmitter {
|
|
28724
28724
|
count: count - cachedResult.messages.length,
|
28725
28725
|
order: 0
|
28726
28726
|
});
|
28727
|
-
|
28727
|
+
logger.warn('getPreviousHistoryMessages remotesResult', remotesResult);
|
28728
28728
|
if (remotesResult.code !== ErrorCode.SUCCESS) {
|
28729
28729
|
return remotesResult;
|
28730
28730
|
}
|
@@ -30108,7 +30108,7 @@ const getRemoteHistoryMessages = async (conversation, options) => {
|
|
30108
30108
|
assert('conversation', conversation, AssertRules.CONVERSATION, true);
|
30109
30109
|
const paramsStr = 'conversationType:' + conversation.conversationType + ',targetId:' + conversation.targetId;
|
30110
30110
|
logger.debug('get remote history message ->' + paramsStr);
|
30111
|
-
|
30111
|
+
logger.warn('getRemoteHistoryMessages options', options);
|
30112
30112
|
if (isDef(options.timestamp)) {
|
30113
30113
|
options.timestamp = options.timestamp.toString();
|
30114
30114
|
}
|
package/index.umd.js
CHANGED
@@ -28710,9 +28710,9 @@
|
|
28710
28710
|
});
|
28711
28711
|
}
|
28712
28712
|
async getPreviousHistoryMessages(conversation, timestamp, count = 20) {
|
28713
|
-
|
28713
|
+
logger.warn('getPreviousHistoryMessages', conversation, timestamp, count);
|
28714
28714
|
const cachedResult = MessageCache.get().getPreviousMessages(conversation, timestamp ?? '0', count);
|
28715
|
-
|
28715
|
+
logger.warn('getPreviousHistoryMessages cachedResult', cachedResult);
|
28716
28716
|
if (!timestamp && cachedResult.messages.length) {
|
28717
28717
|
ConversationManager$1.get().refreshLatestMessage(conversation, cachedResult.messages[cachedResult.messages.length - 1]);
|
28718
28718
|
}
|
@@ -28730,7 +28730,7 @@
|
|
28730
28730
|
count: count - cachedResult.messages.length,
|
28731
28731
|
order: 0
|
28732
28732
|
});
|
28733
|
-
|
28733
|
+
logger.warn('getPreviousHistoryMessages remotesResult', remotesResult);
|
28734
28734
|
if (remotesResult.code !== exports.ErrorCode.SUCCESS) {
|
28735
28735
|
return remotesResult;
|
28736
28736
|
}
|
@@ -30114,7 +30114,7 @@
|
|
30114
30114
|
assert('conversation', conversation, AssertRules.CONVERSATION, true);
|
30115
30115
|
const paramsStr = 'conversationType:' + conversation.conversationType + ',targetId:' + conversation.targetId;
|
30116
30116
|
logger.debug('get remote history message ->' + paramsStr);
|
30117
|
-
|
30117
|
+
logger.warn('getRemoteHistoryMessages options', options);
|
30118
30118
|
if (isDef(options.timestamp)) {
|
30119
30119
|
options.timestamp = options.timestamp.toString();
|
30120
30120
|
}
|