From 979d992bd108de573b2124e90903937a91649973 Mon Sep 17 00:00:00 2001 From: swordbeta Date: Thu, 4 May 2017 21:38:58 +0200 Subject: [PATCH] Don't show unread marker for date marker. --- client/js/lounge.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 3bd2e50f..21148a2b 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -444,7 +444,9 @@ $(function() { ]); if (data.msg.self - || container.find("div:visible").last().hasClass("unread-marker")) { + || container.find("div:visible").last().hasClass("unread-marker") + || (container.find("div:visible").last().hasClass("date-marker") + && container.find("div:visible").last().prev().hasClass("unread-marker"))) { container .find(".unread-marker") .appendTo(container);