diff options
Diffstat (limited to 'vendor/github.com/Philipp15b/go-steam/socialcache/friends.go')
-rw-r--r-- | vendor/github.com/Philipp15b/go-steam/socialcache/friends.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/github.com/Philipp15b/go-steam/socialcache/friends.go b/vendor/github.com/Philipp15b/go-steam/socialcache/friends.go index 15168b80..511da9bb 100644 --- a/vendor/github.com/Philipp15b/go-steam/socialcache/friends.go +++ b/vendor/github.com/Philipp15b/go-steam/socialcache/friends.go @@ -2,9 +2,10 @@ package socialcache import ( "errors" + "sync" + . "github.com/Philipp15b/go-steam/protocol/steamlang" . "github.com/Philipp15b/go-steam/steamid" - "sync" ) // Friends list is a thread safe map @@ -76,7 +77,7 @@ func (list *FriendsList) SetName(id SteamId, name string) { } } -func (list *FriendsList) SetAvatar(id SteamId, hash string) { +func (list *FriendsList) SetAvatar(id SteamId, hash []byte) { list.mutex.Lock() defer list.mutex.Unlock() if val, ok := list.byId[id]; ok { @@ -136,7 +137,7 @@ func (list *FriendsList) SetGameName(id SteamId, name string) { type Friend struct { SteamId SteamId `json:",string"` Name string - Avatar string + Avatar []byte Relationship EFriendRelationship PersonaState EPersonaState PersonaStateFlags EPersonaStateFlag |