Merge pull request #1016 from swordbeta/unread_marker_hidden_joins

Unread marker takes hidden messages into account.
This commit is contained in:
Pavel Djundik 2017-06-20 08:15:31 +03:00 committed by GitHub
commit 32a73d49f1

View File

@ -497,8 +497,11 @@ $(function() {
target,
data
]);
if (data.msg.self) {
var lastVisible = container.find("div:visible").last();
if (data.msg.self
|| lastVisible.hasClass("unread-marker")
|| (lastVisible.hasClass("date-marker")
&& lastVisible.prev().hasClass("unread-marker"))) {
container
.find(".unread-marker")
.appendTo(container);