From 242cac15d839f01079b88819c0698ca812c479dc 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 ae8f5641..ef4fae7e 100644 --- a/bitchat/App/PeerListModel.swift +++ b/bitchat/App/PeerListModel.swift @@ -99,6 +99,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) {