Skip to content

Commit

Permalink
rename arg to displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Jul 11, 2023
1 parent 37f1971 commit fe8dcba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/avatar-volume-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export function calcGainMultiplier(level) {
);
}

export function updateAvatarVolumesPref(playerSessionId, gainMultiplier, muted) {
export function updateAvatarVolumesPref(displayName, gainMultiplier, muted) {
const avatarVoiceLevels = APP.store.state.preferences.avatarVoiceLevels || {};
avatarVoiceLevels[playerSessionId] = {
avatarVoiceLevels[displayName] = {
gainMultiplier,
muted
};
Expand All @@ -43,6 +43,6 @@ export function updateAvatarVolumesPref(playerSessionId, gainMultiplier, muted)
});
}

export function getAvatarVolumePref(playerSessionId) {
return APP.store.state.preferences.avatarVoiceLevels?.[playerSessionId];
export function getAvatarVolumePref(displayName) {
return APP.store.state.preferences.avatarVoiceLevels?.[displayName];
}

0 comments on commit fe8dcba

Please sign in to comment.