fix login redirect
This commit is contained in:
parent
138e0d93e5
commit
af948eb35d
1 changed files with 8 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
.stream
|
||||
.where((l) => l == LoginState.loggedIn)
|
||||
.first
|
||||
.then((_) {
|
||||
.then((_) async {
|
||||
// #Pangea
|
||||
MatrixState.pangeaController.handleLoginStateChange(
|
||||
LoginState.loggedIn,
|
||||
|
|
@ -216,7 +216,13 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
);
|
||||
_registerSubs(_loginClientCandidate!.clientName);
|
||||
_loginClientCandidate = null;
|
||||
FluffyChatApp.router.go('/rooms');
|
||||
// #Pangea
|
||||
// FluffyChatApp.router.go('/rooms');
|
||||
final isL2Set = await pangeaController.userController.isUserL2Set;
|
||||
FluffyChatApp.router.go(
|
||||
isL2Set ? '/rooms' : '/registration/create',
|
||||
);
|
||||
// Pangea#
|
||||
});
|
||||
// #Pangea
|
||||
candidate.homeserver = Uri.parse("https://${AppConfig.defaultHomeserver}");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue