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