flameoflust69 got a reaction from
filezilla in requestRichPresence returns empty object
Fixed this by updating the schema steammessages_clientserver_2.json
"CMsgClientRichPresenceInfo": {
"edition": "proto2",
"fields": {
"rich_presence": {
"rule": "repeated",
"type": ".CMsgClientRichPresenceInfo.RichPresence",
"id": 1
}
},
"nested": {
"KV": {
"fields": {
"key": {
"type": "string",
"id": 1
},
"value": {
"type": "string",
"id": 2
}
}
},
"RichPresence": {
"fields": {
"steamid_user": {
"type": "fixed64",
"id": 1
},
"rich_presense": {
"rule": "repeated",
"type": ".CMsgClientRichPresenceInfo.KV",
"id": 3
}
}
}
}
},
And make changes for requestRichPresence inside friends.js because it returns array of object now not bytes
let response = {};
body.rich_presence = body.rich_presence || [];
for (let rp of body.rich_presence) {
let kv = rp.rich_presense;
if (!kv || !rp.steamid_user || kv.length == 0) {
continue;
}
response[rp.steamid_user] = {
richPresence: kv,
localizedString: null,
};
}
resolve({users: response});