From 7733abde5de910ead4d9df1594c6123ff33fc617 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 21 Dec 2024 19:35:40 +0800 Subject: [PATCH] :bug: Bug fix in getting user account id --- pkg/internal/services/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/events.go b/pkg/internal/services/events.go index a82f510..5a9a395 100644 --- a/pkg/internal/services/events.go +++ b/pkg/internal/services/events.go @@ -171,7 +171,7 @@ func NotifyMessageEvent(members []models.ChannelMember, event models.Event) { } } - user, err := authkit.GetUser(gap.Nx, event.SenderID) + user, err := authkit.GetUser(gap.Nx, event.Sender.AccountID) if err == nil { event.Sender.Avatar = user.Avatar if len(event.Sender.Nick) == 0 {