扩展消息部分代码提交

This commit is contained in:
XiuYun CHEN
2025-07-14 17:37:45 +08:00
parent cf7aa93d6e
commit 1121cc3f20
15 changed files with 200 additions and 73 deletions
@@ -5,6 +5,7 @@
*
*/
import { BasicConstant, ChatParam, preferenceStore } from '@itcast/basic';
import { ChatKitClient, ChatRepo, NEUserWithFriend, PersonSelectParam, TeamRepo } from '@nimkit/chatkit';
import { CommonEmptyResult, CommonLongLoadingProgress, NetworkBrokenBuilder } from '@nimkit/common';
import { V2NIMConversationType, V2NIMLocalConversation } from '@nimsdk/base';
@@ -90,7 +91,15 @@ export struct LocalConversationPage {
*/
goToChatPage(conversationInfo: V2NIMLocalConversation) {
if (conversationInfo?.type == V2NIMConversationType.V2NIM_CONVERSATION_TYPE_P2P) {
this.pathStack.pushPath({ name: "ChatP2PPage", param: conversationInfo.conversationId })
preferenceStore.setItemString('gdxz_consult_uuid','')
preferenceStore.setItemString('gdxz_sessionType',BasicConstant.general)
this.pathStack.pushPath({ name: "ChatP2PPage",
param: {
// gdxz_sessionType:BasicConstant.general,
conversationId:conversationInfo.conversationId
} as ChatParam
})
} else if (conversationInfo?.type == V2NIMConversationType.V2NIM_CONVERSATION_TYPE_TEAM) {
this.pathStack.pushPath({ name: "ChatTeamPage", param: conversationInfo.conversationId })
}