Skip to content

Commit

Permalink
Fix not updating heroes' avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jul 14, 2023
1 parent 0da3a29 commit b943a60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sync3/caches/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ func (c *GlobalCache) OnNewEvent(
for i := range metadata.Heroes {
if metadata.Heroes[i].ID == *ed.StateKey {
metadata.Heroes[i].Name = ed.Content.Get("displayname").Str
metadata.Heroes[i].Avatar = ed.Content.Get("avatar_url").Str
found = true
break
}
Expand Down

0 comments on commit b943a60

Please sign in to comment.