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
v1.18.x
psychobunny 10 years ago
parent c13e14d2c8
commit 1556365712

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

Loading…
Cancel
Save