From c2110a2098d475c5fa06d265833e229fad938e8d Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 7 Apr 2026 14:18:01 +0200 Subject: Empty contacts cache on disconnect The cache of server data must be cleared on any disconnect. This avoids a bug when devices from another server are displayed after connecting to a different server or displaying outdated states on re-connect. --- lib/data.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/data.dart b/lib/data.dart index ca350e5..4962a50 100644 --- a/lib/data.dart +++ b/lib/data.dart @@ -147,6 +147,7 @@ class AppState with ChangeNotifier { } void _onDisconnected() { + contacts = {}; process(MachineEvent.disconnected); } -- cgit v1.3