Add a global switch to stop loading images from links

'Load images from links' (default on) gates every link image fetch in
MessageUrlImageHelper: chat previews, notification images, ipfs://
resolution and pyx/ibb scraping. Per-chat toggles keep their values but
are disabled while it is off. IPFS uploads are unaffected.
This commit is contained in:
zjs81 committed 2026-10-24 22:01:29 -07:00
1 parent 7f5f71d070
commit 79e3668c18
31 files changed
+381 -33

No files matched your search

+4
View File
@@ -328,6 +328,10 @@ class AppSettingsService extends ChangeNotifier {
await updateSettings(_settings.copyWith(networkMapPromptShown: value));
}
Future<void> setLoadLinkImages(bool value) async {
await updateSettings(_settings.copyWith(loadLinkImages: value));
}
Future<void> setIpfsImageSettings({
required String publicGateway,
required String uploadGateway,