Merge branch 'main' of gitlab.com:famedly/fluffychat

This commit is contained in:
Christian Pauly 2021-09-19 15:11:14 +02:00
commit b54224301c

View File

@ -140,10 +140,10 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
.where((l) => l == LoginState.loggedIn) .where((l) => l == LoginState.loggedIn)
.first .first
.then((_) { .then((_) {
_loginClientCandidate = null;
widget.clients.add(_loginClientCandidate); widget.clients.add(_loginClientCandidate);
ClientManager.addClientNameToStore(_loginClientCandidate.clientName); ClientManager.addClientNameToStore(_loginClientCandidate.clientName);
_registerSubs(_loginClientCandidate.clientName); _registerSubs(_loginClientCandidate.clientName);
_loginClientCandidate = null;
widget.router.currentState.to('/rooms'); widget.router.currentState.to('/rooms');
}); });
return _loginClientCandidate; return _loginClientCandidate;