mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-10-25 07:41:41 +00:00
fix: refresh peer rows after toggling nearby notification mute
This commit is contained in:
parent
2ec5e05393
commit
e063189b7c
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user