logout method

Future<void> logout()

Implementation

Future<void> logout() async {
  for (final w in List<SyImGroupReadWatch>.from(_groupReadWatches)) {
    w.cancel();
  }
  await _adapter?.logout();
  _loggedIn = false;
  _currentUserId = null;
  _publishUnread(_unread.clear);
}