🐛 Bug fix in getting user account id

This commit is contained in:
LittleSheep 2024-12-21 19:35:40 +08:00
parent 24783a3b66
commit 7733abde5d

View File

@ -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 { if err == nil {
event.Sender.Avatar = user.Avatar event.Sender.Avatar = user.Avatar
if len(event.Sender.Nick) == 0 { if len(event.Sender.Nick) == 0 {