🐛 Fix notify missing channel identifier

This commit is contained in:
LittleSheep 2024-06-28 13:58:57 +08:00
parent 931a865c1c
commit 1308d4ad4c

View File

@ -81,6 +81,7 @@ func NewEvent(event models.Event) (models.Event, error) {
return event, nil
}
channel := event.Channel
event, _ = GetEvent(event.Channel, event.ID)
for _, member := range members {
PushCommand(member.AccountID, models.UnifiedCommand{
@ -90,6 +91,7 @@ func NewEvent(event models.Event) (models.Event, error) {
}
if strings.HasPrefix(event.Type, "messages") {
event.Channel = channel
NotifyMessageEvent(members, event)
}