Synchronize muted channel state

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-10 00:31:29 -04:00
committed by Brandon McGinty
parent 118799d112
commit 20c6997ab0
5 changed files with 46 additions and 14 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ func (b *Barnard) setTransmit(ui *uiterm.Ui, val int) {
b.Notify("error", "me", "no tx while disconnected")
b.Tx = false
b.UpdateGeneralStatus("no tx while disconnected", true)
} else if b.MutedChannels[b.Client.Self.Channel.ID] {
} else if b.isChannelMuted(b.Client.Self.Channel.ID) {
// Check if current channel is muted
b.Notify("error", "me", "cannot transmit in muted channel")
b.Tx = false