From 6348eb2babed47ed1d22691b3744c7cee4e77dd6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 28 Jul 2015 10:24:46 -0400 Subject: [PATCH] fixed #3359 --- public/src/modules/chat.js | 7 ++++--- public/src/modules/taskbar.js | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index 9ccc434abf..c47999de0a 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -82,7 +82,7 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra taskbar.updateActive(modal.attr('UUID')); Chats.scrollToBottom(modal.find('#chat-content')); } else { - module.toggleNew(modal.attr('UUID'), true); + module.toggleNew(modal.attr('UUID'), true, true); } if (!isSelf && (!modal.is(":visible") || !app.isFocused)) { @@ -97,9 +97,10 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra } else { module.createModal({ username: username, - touid: data.withUid + touid: data.withUid, + silent: true }, function(modal) { - module.toggleNew(modal.attr('UUID'), true); + module.toggleNew(modal.attr('UUID'), true, true); if (!isSelf) { app.alternatingTitle('[[modules:chat.user_has_messaged_you, ' + username + ']]'); sounds.play('chat-incoming'); diff --git a/public/src/modules/taskbar.js b/public/src/modules/taskbar.js index 58d3629c83..e664037c0d 100644 --- a/public/src/modules/taskbar.js +++ b/public/src/modules/taskbar.js @@ -74,7 +74,6 @@ define('taskbar', function() { }; taskbar.toggleNew = function(uuid, state, silent) { - console.log('TOGGLING'); var btnEl = taskbar.tasklist.find('[data-uuid="' + uuid + '"]'); btnEl.toggleClass('new', state);