fix: treat ADMIN_ALERT message type as standard message in chatlog broadcaster
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user