From 110c0f0c87cba3e4d44a62dc54ce1d55e69fab01 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 1 Apr 2017 11:06:01 +0300 Subject: [PATCH] Correctly append date marker when receiving a message --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 43775dc2..fa3ec21d 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -432,7 +432,7 @@ $(function() { } if (prevMsgTime.toDateString() !== msgTime.toDateString()) { - prevMsg.append(templates.date_marker({msgDate: msgTime})); + prevMsg.after(templates.date_marker({msgDate: msgTime})); } // Add message to the container