Skip to content

Commit

Permalink
deleted notification of mention that is appearing too late
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Grim committed Mar 10, 2015
1 parent dd9f6bc commit 473fdb8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/twister_newmsgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ function requestMentionsCount() {
if( _newMentionsUpdated ) {
_newMentionsUpdated = false;

$.MAL.soundNotifyMentions();
if ( _newMentions ) {
$.MAL.soundNotifyMentions();

if ($.Options.getShowDesktopNotifMentionsOpt() === 'enable') {
$.MAL.showDesktopNotif(false, polyglot.t('You got')+' '+polyglot.t('new_mentions', _newMentions)+'.', false,'twister_notification_new_mentions', $.Options.getShowDesktopNotifMentionsTimerOpt(), function(){$.MAL.showMentions(defaultScreenName)}, false)
if ($.Options.getShowDesktopNotifMentionsOpt() === 'enable') {
$.MAL.showDesktopNotif(false, polyglot.t('You got')+' '+polyglot.t('new_mentions', _newMentions)+'.', false,'twister_notification_new_mentions', $.Options.getShowDesktopNotifMentionsTimerOpt(), function(){$.MAL.showMentions(defaultScreenName)}, false)
}
}
}

Expand Down

0 comments on commit 473fdb8

Please sign in to comment.