Merge pull request #1016 from swordbeta/unread_marker_hidden_joins
Unread marker takes hidden messages into account.
This commit is contained in:
commit
32a73d49f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user