clearChattingAccount static method

  1. @Deprecated('use clearChattingAccountWithId')
dynamic clearChattingAccount()

清除设置的当前聊天账号信息

Implementation

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