mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user