mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-03 06:10:38 +01:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user