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))
|
msgType := strings.ToUpper(strings.TrimSpace(p.Type))
|
||||||
if msgType == "" {
|
if msgType == "" || msgType == "ADMIN_ALERT" {
|
||||||
msgType = "MESSAGE"
|
msgType = "MESSAGE"
|
||||||
} else if msgType == "ALERT" {
|
} else if msgType == "ALERT" {
|
||||||
msgType = "ALLERT"
|
msgType = "ALLERT"
|
||||||
|
|||||||
Reference in New Issue
Block a user