style: weitere flutter-analyze Hinweise beheben
- document_viewer: Matrix4.translate/scale durch translateByDouble/ scaleByDouble ersetzt (PDF-Zoom-Transformation, gleiches Verhalten) - rooms_panel: onReorder durch onReorderItem ersetzt (Index-Korrektur jetzt intern erledigt), implementation_imports-Hinweis kommentiert (SpaceChild wird vom matrix-Paket nicht öffentlich exportiert) - voip_manager: getSources()-Override kommentiert (erzwungen durch abstrakte MediaDevices-Klasse, die die Methode selbst deprecated hat) - settings_modal: BuildContext-Nutzung nach await mit context.mounted abgesichert (Geräte umbenennen, Passwort-Abfrage bei Massenlogout) Verbleibend: chat_provider.dart onUpdate (Timeline-Redecrypt-Pfad, bewusst nicht angefasst ohne dedizierten E2EE-Test, siehe PROGRESS.md).
This commit is contained in:
@@ -2499,6 +2499,7 @@ class _SessionsSectionState extends ConsumerState<_SessionsSection> {
|
||||
|
||||
Future<void> _renameCurrentDevice(BuildContext context) async {
|
||||
final client = await ref.read(matrixClientProvider.future);
|
||||
if (!context.mounted) return;
|
||||
final currentName = _devices
|
||||
.where((d) => d.deviceId == _currentDeviceId)
|
||||
.map((d) => d.unsigned?['device_display_name'] as String? ?? d.deviceId ?? '')
|
||||
@@ -2589,7 +2590,7 @@ class _SessionsSectionState extends ConsumerState<_SessionsSection> {
|
||||
try {
|
||||
await client.deleteDevices(otherIds);
|
||||
} on MatrixException catch (e) {
|
||||
if (e.requireAdditionalAuthentication && mounted) {
|
||||
if (e.requireAdditionalAuthentication && context.mounted) {
|
||||
final password = await _askPassword(context, pt);
|
||||
if (password == null || !mounted) { setState(() => _logoutAllLoading = false); return; }
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user