steamutils 1.1.88 → 1.1.89
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +7 -3
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -925,11 +925,14 @@ function SteamClient({
|
|
925
925
|
});
|
926
926
|
|
927
927
|
steamClient.on('friendsList', async function () {
|
928
|
-
|
929
|
-
callEvent(events.friendsList, friends)
|
928
|
+
callEvent(events.friendsList, getFriendList())
|
930
929
|
});
|
931
930
|
}
|
932
931
|
|
932
|
+
function getFriendList() {
|
933
|
+
return Object.keys(steamClient.myFriends).filter(steamId => steamClient.myFriends[steamId] === SteamUser.EFriendRelationship.Friend)
|
934
|
+
}
|
935
|
+
|
933
936
|
function sendFriendTyping(steamId, callback) {
|
934
937
|
steamClient.chat.sendFriendTyping(steamId, callback)
|
935
938
|
}
|
@@ -1282,7 +1285,8 @@ function SteamClient({
|
|
1282
1285
|
log,
|
1283
1286
|
isPrime(){
|
1284
1287
|
return prime === true
|
1285
|
-
}
|
1288
|
+
},
|
1289
|
+
getFriendList
|
1286
1290
|
}
|
1287
1291
|
}
|
1288
1292
|
|