最近会话有问题
This commit is contained in:
parent
c46d9848f0
commit
b843007d7a
@ -5,6 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { patientDbManager } from '@itcast/basic'
|
||||
import { ChatKitClient, LocalConversationRepo, TeamRepo } from '@nimkit/chatkit'
|
||||
import {
|
||||
V2NIMConnectStatus,
|
||||
@ -242,6 +243,15 @@ export class LocalConversationViewModel {
|
||||
conversation.conversationId))
|
||||
}
|
||||
this.conversationList?.push(...newConversation)
|
||||
//异步有问题
|
||||
if (this.conversationList.length > 0 ) {
|
||||
const resultconversationList =await this.conversationList.filter(async conversation =>
|
||||
await patientDbManager.getPatientByUuid(ChatKitClient.nim.conversationIdUtil.parseConversationTargetId(conversation.conversationId))!=null
|
||||
)
|
||||
this.conversationList =resultconversationList;
|
||||
|
||||
}
|
||||
|
||||
this.conversationList?.sort((a, b) => this.sortConversation(a, b))
|
||||
this.isFinishedSyncLoad = true
|
||||
console.debug(`Performance Test finish loadLocalConversation`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user