From fc476ba1680264bd3a76b20609b2f267fafeac73 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 27 Nov 2015 12:52:58 -0500 Subject: [PATCH] Fixes #3906 Initially, the removed block of code was used to stop the chat modal from popping up altogether, since the /chats page was usable on mobile. Since the re-design, only the contact list is shown on mobile, leaving the modal as the main way to communicate. So, this intercepting code is actually interfering now. --- public/src/modules/chat.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index b2613a2e8a..a9363836cd 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -19,11 +19,6 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra }); socket.on('event:chats.receive', function(data) { - if (ajaxify.currentPage.slice(0, 6) === 'chats/') { - // User is on the chats page, so do nothing (src/forum/chats.js will handle it) - return; - } - var username = data.message.fromUser.username; var isSelf = parseInt(data.message.fromUser.uid, 10) === parseInt(app.user.uid, 10); data.message.self = data.self;