Trim an oversized list when enabling eviction

This commit is contained in:
ericz committed 2026-09-08 18:05:11 +02:00
1 parent 1dbb487fe7
commit 1323bf13b6
2 files changed
+17 -3

No files matched your search

+3
View File
@@ -1269,6 +1269,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
await appSettingsService.setEvictDiscoveredContactsEnabled(
evictDiscoveredContactsEnabled,
);
if (evictDiscoveredContactsEnabled) {
await connector.trimDiscoveredContactsToLimit();
}
_sendSettings(
connector,
autoAddChat,