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 {