Skip to content

Node.js based forum software built for the modern web

call taskbar.push regardless of whether it's a new chat or not

psychobunny155636571295
diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js
index 593d576e3e..9c1183d6a1 100644
--- a/public/src/modules/chat.js
+++ b/public/src/modules/chat.js
@@ -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) {