fix: treat ADMIN_ALERT message type as standard message in chatlog broadcaster

This commit is contained in:
fabio
2026-10-10 16:33:47 +02:00
parent adc0b236a3
commit 2b757b121e

View File

@@ -42,7 +42,7 @@ func AddChatLog(ctx context.Context, id string, p *AddChatLogParams) (*ChatLogEn
}
msgType := strings.ToUpper(strings.TrimSpace(p.Type))
if msgType == "" {
if msgType == "" || msgType == "ADMIN_ALERT" {
msgType = "MESSAGE"
} else if msgType == "ALERT" {
msgType = "ALLERT"