clearChattingAccountWithId static method

dynamic clearChattingAccountWithId(
  1. String sessionId,
  2. NIMSessionType sessionType
)

清除设置的当前聊天账号信息 @param sessionId 聊天对象id @param sessionType 聊天对象类型

Implementation

static clearChattingAccountWithId(
    String sessionId, NIMSessionType sessionType) {
  NIMChatCache.instance.clearCurrentChatSession(sessionId, sessionType);
  NimCore.instance.messageService.setChattingAccount(
      sessionId: 'none', sessionType: NIMSessionType.none);
}