steamutils 1.1.88 → 1.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|