no taskbar invocation on chats page, fixes #6227

This commit is contained in:
Julian Lam
2018-01-11 15:26:46 -05:00
parent 89383c261f
commit 2ad2ef96ba

View File

@@ -61,7 +61,7 @@ define('chat', [
if (modal.is(':visible')) {
taskbar.updateActive(modal.attr('UUID'));
ChatsMessages.scrollToBottom(modal.find('.chat-content'));
} else {
} else if (!ajaxify.data.template.chats) {
module.toggleNew(modal.attr('UUID'), true, true);
}
@@ -75,7 +75,7 @@ define('chat', [
roomId: data.roomId,
});
}
} else {
} else if (!ajaxify.data.template.chats) {
socket.emit('modules.chats.loadRoom', {
roomId: data.roomId,
}, function (err, roomData) {