chore: minor

This commit is contained in:
andig 2026-08-11 09:54:34 +02:00
parent dc143a6dc7
commit 6fdb83fc14
10 changed files with 24 additions and 29 deletions

View file

@ -2,6 +2,7 @@ package messenger
import (
"fmt"
"maps"
"reflect"
"strings"
"text/template"
@ -105,9 +106,7 @@ func (h *Hub) apply(ev Event, tmpl string) (string, error) {
}
// event-specific attributes override cache values
for k, v := range ev.Attributes {
attr[k] = v
}
maps.Copy(attr, ev.Attributes)
return util.ReplaceFormatted(tmpl, attr)
}