From 1308d4ad4c7608de1b5c7ce33c05641a1d554b2d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 28 Jun 2024 13:58:57 +0800 Subject: [PATCH] :bug: Fix notify missing channel identifier --- pkg/internal/services/events.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/internal/services/events.go b/pkg/internal/services/events.go index eed3692..650cbd6 100644 --- a/pkg/internal/services/events.go +++ b/pkg/internal/services/events.go @@ -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) }