mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-15 22:41:11 +02:00
call taskbar.push regardless of whether it's a new chat or not
there's logic in taskbar.push to not create the element anyways
This commit is contained in:
@@ -85,6 +85,11 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
|
||||
if (!isSelf && (!modal.is(":visible") || !app.isFocused)) {
|
||||
app.alternatingTitle('[[modules:chat.user_has_messaged_you, ' + username + ']]');
|
||||
sounds.play('chat-incoming');
|
||||
|
||||
taskbar.push('chat', modal.attr('UUID'), {
|
||||
title: username,
|
||||
touid: data.message.fromUser.uid
|
||||
});
|
||||
}
|
||||
} else {
|
||||
module.createModal(username, data.withUid, function(modal) {
|
||||
|
||||
Reference in New Issue
Block a user