mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-23 09:40:40 +01:00
derp
This commit is contained in:
parent
c136c69ed4
commit
a32ce35347
@ -370,10 +370,6 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
final loggedInWithMultipleClients = widget.clients.length > 1;
|
final loggedInWithMultipleClients = widget.clients.length > 1;
|
||||||
if (state != LoginState.loggedIn) {
|
if (state != LoginState.loggedIn) {
|
||||||
_cancelSubs(c.clientName);
|
_cancelSubs(c.clientName);
|
||||||
widget.router.currentState.to(
|
|
||||||
'/rooms',
|
|
||||||
queryParameters: widget.router.currentState.queryParameters,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (loggedInWithMultipleClients) {
|
if (loggedInWithMultipleClients) {
|
||||||
// TODO: display a nicer toast
|
// TODO: display a nicer toast
|
||||||
@ -384,6 +380,12 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
message: 'New login state: $state',
|
message: 'New login state: $state',
|
||||||
okLabel: L10n.of(widget.context).ok,
|
okLabel: L10n.of(widget.context).ok,
|
||||||
);
|
);
|
||||||
|
if (state != LoginState.loggedIn) {
|
||||||
|
widget.router.currentState.to(
|
||||||
|
'/rooms',
|
||||||
|
queryParameters: widget.router.currentState.queryParameters,
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
final isInLoginRoutes = {'/home', '/login', '/signup'}
|
final isInLoginRoutes = {'/home', '/login', '/signup'}
|
||||||
.contains(widget.router.currentState.url);
|
.contains(widget.router.currentState.url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user