logout method

Future<bool> logout()

Implementation

Future<bool> logout() async {
  V2TimCallback logoutRes = await _manager.logout();
  bool res = false;
  if (logoutRes.code == 0) {
    _manager.unInitSDK();
    res = true;
  }
  TencentCloudChat.instance.logInstance.console(
    componentName: _tag,
    logs:
        "logout Is Called. Res Is $res. Desc Is ${logoutRes.desc} Code is ${logoutRes.code}",
  );
  TencentCloudChat.instance.dataInstance.basic.updateLoginStatus(
    status: res,
  );
  return res;
}