Commit 207cdfab by Kim Peace

Fixed not to display today system message label

parent a30a3d69
......@@ -170,7 +170,11 @@ ChatRoom.prependMessage = function (messages) {
const isToday = messageCreatedTime.includes(":") ? true : false;
// 日付ラーベル表示
if (messageCreatedTime != checkBeforeDate && checkBeforeDate != "") {
if (
messageCreatedTime != checkBeforeDate
&& checkBeforeDate != ""
&& !isToday
) {
const html = ChatRoom.renderDateLabelMessage(beforeDate);
workVal = html + workVal;
}
......
......@@ -37,6 +37,9 @@ document.addEventListener("DOMContentLoaded", function () {
// メッセージ入力イベントバインディング
ChatRoom.bindMessageInput();
// 下スクロールでユーザーリストを非表示
ChatRoom.bindUserListDisplayToggle();
});
ChatRoom.bindResize = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment