fix: keep sender favicons off by default so sender domains don't go to duckduckgo

This commit is contained in:
Linus Rath
2026-10-31 03:38:44 +01:00
parent 0b0fc021fb
commit 8e10e73e29
2 changed files with 21 additions and 1 deletions
@@ -0,0 +1,20 @@
import { describe, it, expect, beforeEach } from 'vitest';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { useSettingsStore } from '../settings-store';
// Defaults the reader pass changed. Kept apart from settings-store.test.ts so
// the agents working on settings in parallel don't edit the same test file.
describe('settings defaults (reader pass)', () => {
beforeEach(async () => {
await AsyncStorage.clear();
useSettingsStore.getState().resetToDefaults();
});
it('keeps sender favicons off until the user turns them on', () => {
// The app fetches them from icons.duckduckgo.com itself, which tells a
// third party every sender domain and the device's IP. The webmail
// proxies them through its own server, so its default doesn't carry over.
expect(useSettingsStore.getState().senderFavicons).toBe(false);
});
});
+1 -1
View File
@@ -319,7 +319,7 @@ const DEFAULT_PERSISTED: PersistedSettings = {
externalContentPolicy: 'ask',
trustedSenders: [],
trustedSendersAddressBook: null,
senderFavicons: true,
senderFavicons: false,
hideInlineImageAttachments: true,
groupContactsByLetter: true,