Skip to content

Commit

Permalink
Closes RocketChat#68; Show alert only when have mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Feb 23, 2016
1 parent 386eefd commit 263ee60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sidebar.on('badge-setted', function() {
if (process.platform === 'darwin') {
remote.app.dock.setBadge(badge);
}
tray.showTrayAlert(badge !== '', badge);
tray.showTrayAlert(!isNaN(parseInt(badge)) && badge > 0, badge);
});

export var start = function() {
Expand Down

0 comments on commit 263ee60

Please sign in to comment.