added support for multiple accounts with an account switcher in settings
This commit is contained in:
@@ -16,7 +16,7 @@ import '../../../extensions/date_time.dart';
|
||||
import '../../../model/endpoint_data.dart';
|
||||
import '../../../push/push_registration_store.dart';
|
||||
import '../../../push/push_registration_type.dart';
|
||||
import '../../../session/session.dart';
|
||||
import '../../../session/account_codec.dart';
|
||||
import '../../../session/session_manager.dart';
|
||||
import '../../../state/app/modules/account/bloc/account_bloc.dart';
|
||||
import '../../../state/app/modules/settings/bloc/settings_cubit.dart';
|
||||
@@ -103,10 +103,9 @@ class _DiagnosticsPageState extends State<DiagnosticsPage> {
|
||||
title: 'Sitzung',
|
||||
rows: await rows({
|
||||
'Status': () async => accountStatus.name,
|
||||
'Benutzer': () async => switch (session) {
|
||||
CredentialSession(:final username) => username,
|
||||
null => null,
|
||||
},
|
||||
'Benutzer': () async =>
|
||||
session == null ? null : identityOf(session).$2,
|
||||
'Konten': () async => SessionManager().accounts.value.accounts.length,
|
||||
'Demo-Modus': () async => session?.isDemo ?? false,
|
||||
'Login Flow v2': () async => nextcloud?.usesLoginFlow ?? false,
|
||||
'App-Passwort (Dateien)': () async =>
|
||||
|
||||
Reference in New Issue
Block a user