fix(contacts): show ignored/blocked contacts in All Sources filter

Previously ignored and blocked contacts were hidden from the "All Sources"
view, making them only discoverable via dedicated Ignored/Blocked filters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-03-20 21:22:52 +01:00
parent a1f2a1c5ef
commit c48666843a

View File

@@ -1928,8 +1928,8 @@ function applySortAndFilters() {
if (selectedSource === 'CACHE' && contact.on_device) return false;
if (selectedSource === 'IGNORED' && !contact.is_ignored) return false;
if (selectedSource === 'BLOCKED' && !contact.is_blocked) return false;
// Hide ignored/blocked from ALL/DEVICE/CACHE views
if (selectedSource !== 'IGNORED' && selectedSource !== 'BLOCKED') {
// Hide ignored/blocked from DEVICE/CACHE views (but show in ALL)
if (selectedSource !== 'ALL' && selectedSource !== 'IGNORED' && selectedSource !== 'BLOCKED') {
if (contact.is_ignored || contact.is_blocked) return false;
}