From e063189b7c2dd192fad6b38866bc6be779fb2375 Mon Sep 17 00:00:00 2001 From: Taksh Date: Sat, 1 Aug 2026 14:41:48 +0300 Subject: [PATCH] fix: refresh peer rows after toggling nearby notification mute --- bitchat/App/PeerListModel.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitchat/App/PeerListModel.swift b/bitchat/App/PeerListModel.swift index 6b02c5e1..dd0b7b94 100644 --- a/bitchat/App/PeerListModel.swift +++ b/bitchat/App/PeerListModel.swift @@ -114,6 +114,10 @@ final class PeerListModel: ObservableObject { func toggleNearbyNotificationMute(peerID: PeerID) { let muted = !chatViewModel.isNearbyNotificationMuted(for: peerID) chatViewModel.setNearbyNotificationMuted(for: peerID, muted: muted) + // Mute lives on the identity manager — PeerListModel's publishers + // do not observe it, so refresh now or the row's bell / menu label + // stay stale until some unrelated peer update (#1541 Codex). + refresh() } func openGeohashDirectMessage(with pubkeyHex: String) {