hotfix: login
This commit is contained in:
parent
d3f4ddc80b
commit
3c5020f1bd
|
@ -87,13 +87,16 @@ class MatrixState extends State<Matrix> {
|
||||||
try {
|
try {
|
||||||
client.database = await getDatabase(client);
|
client.database = await getDatabase(client);
|
||||||
await client.connect();
|
await client.connect();
|
||||||
if (await initLoginState == LoginState.logged && PlatformInfos.isMobile) {
|
final firstLoginState = await initLoginState;
|
||||||
await FirebaseController.setupFirebase(
|
if (firstLoginState == LoginState.logged) {
|
||||||
this,
|
_cleanUpUserStatus(userStatuses);
|
||||||
widget.clientName,
|
if (PlatformInfos.isMobile) {
|
||||||
);
|
await FirebaseController.setupFirebase(
|
||||||
|
this,
|
||||||
|
widget.clientName,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_cleanUpUserStatus(userStatuses);
|
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
client.onLoginStateChanged.sink.addError(e, s);
|
client.onLoginStateChanged.sink.addError(e, s);
|
||||||
captureException(e, s);
|
captureException(e, s);
|
||||||
|
|
Loading…
Reference in New Issue