mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-11 23:20:46 +01:00
fixed #3359
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user