diff options
| author | xengineering <me@xengineering.eu> | 2026-04-07 14:18:01 +0200 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2026-04-07 14:18:01 +0200 |
| commit | c2110a2098d475c5fa06d265833e229fad938e8d (patch) | |
| tree | 85e4ecf8d2b29b039363c88f10963cac8f35b383 /lib | |
| parent | 628c39ca920213696c8f792af344643cb6e60589 (diff) | |
| download | sia-app-c2110a2098d475c5fa06d265833e229fad938e8d.tar sia-app-c2110a2098d475c5fa06d265833e229fad938e8d.tar.zst sia-app-c2110a2098d475c5fa06d265833e229fad938e8d.zip | |
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.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/data.dart | 1 |
1 files changed, 1 insertions, 0 deletions
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 = <String, bool>{}; process(MachineEvent.disconnected); } |
