mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-21 21:32:59 +00:00
Only modify dom and scroll if there any new message
This commit is contained in:
+4
-2
@@ -33,8 +33,10 @@ var refreshConversation = function() {
|
|||||||
},
|
},
|
||||||
function(jsondata, status) {
|
function(jsondata, status) {
|
||||||
conversationBuf = formatConversation(jsondata);
|
conversationBuf = formatConversation(jsondata);
|
||||||
$('.msg-endtag').before(conversationBuf);
|
if (conversationBuf != '') {
|
||||||
$('#app-content').scrollTop(1E10);
|
$('.msg-endtag').before(conversationBuf);
|
||||||
|
$('#app-content').scrollTop(1E10);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user