Bound notification delivery and expansion

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 14:38:02 -04:00
committed by Brandon McGinty
parent 4497d41077
commit d64e5125dd
4 changed files with 43 additions and 12 deletions
+6 -1
View File
@@ -38,7 +38,12 @@ func esc(str string) string {
}
func (b *Barnard) Notify(event string, who string, what string) {
b.notifyChannel <- []string{event, who, what}
// Notifications are best-effort: a slow external command must not block a
// UI or network callback. New events are dropped once the bounded queue is full.
select {
case b.notifyChannel <- []string{event, who, what}:
default:
}
}
func (b *Barnard) SetSelectedUser(user *gumble.User) {