Displaying group mute on load
This commit is contained in:
@ -119,8 +119,9 @@ const SnapcastGroups = (props) => {
|
||||
{ icon: 'fitness_center', words: ['gym'] },
|
||||
{ icon: 'emoji_food_beverage', words: ['kitchen'] },
|
||||
{ icon: 'deck', words: ['deck', 'outside'] },
|
||||
{ icon: 'restaurant_menu', words: ['dining'] },
|
||||
{ icon: 'restaurant_menu', words: ['dining', 'dinner'] },
|
||||
{ icon: 'laptop', words: ['laptop'] },
|
||||
{ icon: 'bug_report', words: ['test', 'debug'] },
|
||||
];
|
||||
const name = group.name.toLowerCase();
|
||||
for (let item of iconWords) {
|
||||
|
||||
@ -879,8 +879,8 @@ export const formatGroup = function (data) {
|
||||
}
|
||||
}
|
||||
|
||||
if (group.mute === undefined && data.mute !== undefined) {
|
||||
group.mute = data.mute;
|
||||
if (group.mute === undefined && data.muted !== undefined) {
|
||||
group.mute = data.muted;
|
||||
}
|
||||
|
||||
return group;
|
||||
|
||||
Reference in New Issue
Block a user