login property
Future<List<ModeratorEntry> ?>
login
Implementation
Future<List<ModeratorEntry>?> get login async {
//TODO init stuff
if (_loggingIn) return null;
_loggingIn = true;
return _io!.handshake(_server, Uint8List(0)).then((hs) async {
_loggingIn = false;
if (hs.isNotEmpty) {
dataIn += hs.lengthInBytes;
//save prefs on sites layer not here
//await _disk?.commitPreferences(
// _io!.dartSessionId, currentNick, currentAvatar);
satisfyXXwant(_io!.xxWantsList);
//final haa = ModeratorCapsule.fromBinary(hs);
//send the pending stuff if we got some
//refreshViaHTTP();
return updateLatestCapsule(hs, false);
}
return data.all;
});
//return data.all;
}