v1.18.x
Julian Lam 10 years ago
parent fcebfd8f39
commit 6348eb2bab

@ -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');

@ -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);

Loading…
Cancel
Save