Skip to content

Commit

Permalink
Activity sync : compare icons or text
Browse files Browse the repository at this point in the history
  • Loading branch information
albaintor committed Dec 12, 2024
1 parent 4e8340d commit 586cfaa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"devDependencies": {
"@types/cookie-parser": "^1.4.7",
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/jest": "^29.5.14",
"@types/morgan": "^1.9.9",
Expand Down
2 changes: 2 additions & 0 deletions src/app/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export class Helper
if (item.media_player_id && item.media_player_id != item2.media_player_id) return false;
if (item.command && (item.command as Command)?.entity_id != (item2.command as Command)?.entity_id &&
(item.command as Command).cmd_id != (item2.command as Command)?.cmd_id) return false;
if (item.type == 'text' && item2.text !== item.text) return false;
if (item.type == 'icon' && item2.icon !== item.icon) return false;
}
return true;
}
Expand Down

0 comments on commit 586cfaa

Please sign in to comment.