From 19360b996e26936aa68cc249dc54ec92c3f73779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Fri, 15 May 2020 11:11:54 +0200 Subject: fix for my comment on 6624370 --- js/chats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/chats.js b/js/chats.js index c60991e..7757e54 100644 --- a/js/chats.js +++ b/js/chats.js @@ -402,7 +402,7 @@ async function startLoadingMessagesForCategory(gsecInstance, category, lastpage) async function renderMessages(gsecMsgList, whom, order = 1) { // order: 1=newest>olest 0=oldest>newest 2=autodetect (todo-not implemented) for (const message of gsecMsgList) { // whom: 0=me 1=you - if (message.subject.substring(0, 20) === "ba-ctlmsg-chat-") { + if (message.subject.startsWith("ba-ctlmsg-chat-")) { addMessage(whom, message.subject.substring(20), 2, message.date.getTime); } } -- cgit v1.2.3