🐛 Bug fix in getting user account id
This commit is contained in:
parent
24783a3b66
commit
7733abde5d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user