mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-08-29 07:27:16 +00:00
fix: refresh peer rows after toggling nearby notification mute
This commit is contained in:
parent
e54f760ada
commit
242cac15d8
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user