setChattingAccount static method

dynamic setChattingAccount(
  1. String? account,
  2. NIMConversationType sessionType,
  3. String conversationId
)

设置当前聊天的账号

Implementation

static setChattingAccount(
    String? account, NIMConversationType sessionType, String conversationId) {
  NIMChatCache.instance.setCurrentChatSession(
      ChatSession(account, sessionType, conversationId));
  ConversationRepo.clearSessionUnreadCount(conversationId);
}