diff options
author | Wim <wim@42.be> | 2019-09-07 22:46:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-07 22:46:58 +0200 |
commit | a3bee01e0af3394c19360b98fd2db1b647f49299 (patch) | |
tree | ffc5778361d55d592a718354a37c9251e75fc7f6 /vendor/github.com/Philipp15b/go-steam/socialcache | |
parent | 1dc93ec4f001edd01daccbe408767d4878be25a3 (diff) | |
download | matterbridge-msglm-a3bee01e0af3394c19360b98fd2db1b647f49299.tar.gz matterbridge-msglm-a3bee01e0af3394c19360b98fd2db1b647f49299.tar.bz2 matterbridge-msglm-a3bee01e0af3394c19360b98fd2db1b647f49299.zip |
Update dependencies (#886)
Diffstat (limited to 'vendor/github.com/Philipp15b/go-steam/socialcache')
-rw-r--r-- | vendor/github.com/Philipp15b/go-steam/socialcache/friends.go | 7 | ||||
-rw-r--r-- | vendor/github.com/Philipp15b/go-steam/socialcache/groups.go | 7 |
2 files changed, 8 insertions, 6 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 diff --git a/vendor/github.com/Philipp15b/go-steam/socialcache/groups.go b/vendor/github.com/Philipp15b/go-steam/socialcache/groups.go index 6acce20f..bb330efc 100644 --- a/vendor/github.com/Philipp15b/go-steam/socialcache/groups.go +++ b/vendor/github.com/Philipp15b/go-steam/socialcache/groups.go @@ -2,9 +2,10 @@ package socialcache import ( "errors" + "sync" + . "github.com/Philipp15b/go-steam/protocol/steamlang" . "github.com/Philipp15b/go-steam/steamid" - "sync" ) // Groups list is a thread safe map @@ -78,7 +79,7 @@ func (list *GroupsList) SetName(id SteamId, name string) { } } -func (list *GroupsList) SetAvatar(id SteamId, hash string) { +func (list *GroupsList) SetAvatar(id SteamId, hash []byte) { list.mutex.Lock() defer list.mutex.Unlock() id = id.ChatToClan() @@ -136,7 +137,7 @@ func (list *GroupsList) SetMemberInGameCount(id SteamId, count uint32) { type Group struct { SteamId SteamId `json:",string"` Name string - Avatar string + Avatar []byte Relationship EClanRelationship MemberTotalCount uint32 MemberOnlineCount uint32 |