fix: null for real

This commit is contained in:
Sorunome 2021-09-19 14:44:09 +02:00
parent 571b416b45
commit d02aa446e1
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 1 additions and 1 deletions

View File

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