refactor: Follow up handle logout and login with new client

This commit is contained in:
Christian Kußowski 2025-06-11 08:19:54 +02:00
commit 2616ba6e4b
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 26 additions and 15 deletions

View file

@ -21,7 +21,8 @@ class LoginView extends StatelessWidget {
final titleParts = title.split(homeserver);
return LoginScaffold(
enforceMobileMode: Matrix.of(context).client.isLogged(),
enforceMobileMode:
Matrix.of(context).widget.clients.any((client) => client.isLogged()),
appBar: AppBar(
leading: controller.loading ? null : const Center(child: BackButton()),
automaticallyImplyLeading: !controller.loading,