Skip to content

Commit

Permalink
修改历史消息获取逻辑
Browse files Browse the repository at this point in the history
调用sdk获取历史消息前通过this._classRoomConnection.mr_cache = [];重置一下缓存`
  • Loading branch information
Loren-Wang committed Jul 1, 2024
1 parent f368b0c commit 9a3831c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/im/wrapper/agora-chat-room-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export class FcrChatRoomItem extends AgoraIMBase {
for (const element of privateMsg.data.list) {
allMsg.set(element.msgId, element);
}
this._classRoomConnection.mr_cache = [];
const groupMsg = await this._classRoomConnection.fetchHistoryMessages({
queue: this._currentChatRoomId,
isGroup: true,
Expand Down

0 comments on commit 9a3831c

Please sign in to comment.