don’t try to request more chat messages when no chat is active. This only affected smartphones.
This commit is contained in:
parent
fa82356ca8
commit
1e2935c018
@ -389,6 +389,7 @@ window.chat.needMoreMessages = function() {
|
||||
if(activeTab === 'debug') return;
|
||||
|
||||
var activeChat = $('#chat > :visible');
|
||||
if(activeChat.length === 0) return;
|
||||
|
||||
var hasScrollbar = scrollBottom(activeChat) !== 0 || activeChat.scrollTop() !== 0;
|
||||
var nearTop = activeChat.scrollTop() <= CHAT_REQUEST_SCROLL_TOP;
|
||||
|
Loading…
x
Reference in New Issue
Block a user