Displaying group mute on load

This commit is contained in:
James Barnsley
2019-11-08 07:57:31 +13:00
parent 33d6c66d96
commit 0efa8a2277
5 changed files with 5455 additions and 9969 deletions

View File

@ -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) {

View File

@ -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;