The app currently does not keep track of any cooldown state and just sends whatever is provided. So, if you press a button that puts it on cooldown for 3 minutes, and then another that puts that same button on cool down for 10 seconds, the button will flip from 3 minutes to the 10 second cooldown.
To fix this we'd need to keep track of cooldowns for all buttons and then only send a cooldown if it is greater than what the button is at currently.
The app currently does not keep track of any cooldown state and just sends whatever is provided. So, if you press a button that puts it on cooldown for 3 minutes, and then another that puts that same button on cool down for 10 seconds, the button will flip from 3 minutes to the 10 second cooldown.
To fix this we'd need to keep track of cooldowns for all buttons and then only send a cooldown if it is greater than what the button is at currently.