refactor: Always open Chat Backup as page right after login

This commit is contained in:
Christian Kußowski 2025-11-22 14:58:07 +01:00
commit 31a204f1ea
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
8 changed files with 95 additions and 69 deletions

View file

@ -170,7 +170,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
);
_registerSubs(_loginClientCandidate!.clientName);
_loginClientCandidate = null;
FluffyChatApp.router.go('/rooms');
FluffyChatApp.router.go('/backup');
});
if (widget.clients.isEmpty) widget.clients.add(candidate);
return candidate;
@ -283,7 +283,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
}
} else {
FluffyChatApp.router
.go(state == LoginState.loggedIn ? '/rooms' : '/home');
.go(state == LoginState.loggedIn ? '/backup' : '/home');
}
});
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(uiaRequestHandler);