mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-02 00:06:23 +00:00
fix: keep sender favicons off by default so sender domains don't go to duckduckgo
This commit is contained in:
@@ -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);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -319,7 +319,7 @@ const DEFAULT_PERSISTED: PersistedSettings = {
|
|||||||
externalContentPolicy: 'ask',
|
externalContentPolicy: 'ask',
|
||||||
trustedSenders: [],
|
trustedSenders: [],
|
||||||
trustedSendersAddressBook: null,
|
trustedSendersAddressBook: null,
|
||||||
senderFavicons: true,
|
senderFavicons: false,
|
||||||
hideInlineImageAttachments: true,
|
hideInlineImageAttachments: true,
|
||||||
|
|
||||||
groupContactsByLetter: true,
|
groupContactsByLetter: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user