Skip to content

Commit

Permalink
Merge pull request #307 from HerrEurobeat/reenable-primaryGroup-support
Browse files Browse the repository at this point in the history
Re-enable primaryGroup profile setting
  • Loading branch information
DoctorMcKay authored Jun 27, 2023
2 parents 6cc96b5 + c25cb31 commit c855b50
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions components/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ SteamCommunity.prototype.editProfile = function(settings, callback) {
values.customURL = settings[i];
break;

case 'primaryGroup':
if(typeof settings[i] === 'object' && settings[i].getSteamID64) {
values.primary_group_steamid = settings[i].getSteamID64();
} else {
values.primary_group_steamid = new SteamID(settings[i]).getSteamID64();
}

break;

// These don't work right now
/*
case 'background':
Expand All @@ -117,15 +126,6 @@ SteamCommunity.prototype.editProfile = function(settings, callback) {
// Currently, game badges aren't supported
values.favorite_badge_badgeid = settings[i];
break;
case 'primaryGroup':
if(typeof settings[i] === 'object' && settings[i].getSteamID64) {
values.primary_group_steamid = settings[i].getSteamID64();
} else {
values.primary_group_steamid = new SteamID(settings[i]).getSteamID64();
}
break;
*/
// TODO: profile showcases
}
Expand Down

0 comments on commit c855b50

Please sign in to comment.