summaryrefslogtreecommitdiffstats
path: root/js/chats.js
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-15 11:11:54 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-15 11:11:54 +0200
commit19360b996e26936aa68cc249dc54ec92c3f73779 (patch)
tree8b65e53cfe5cf924fa87e1f3ab03b7da29d47f89 /js/chats.js
parentRemove beziapp references from chat (diff)
downloadbeziapp-19360b996e26936aa68cc249dc54ec92c3f73779.tar
beziapp-19360b996e26936aa68cc249dc54ec92c3f73779.tar.gz
beziapp-19360b996e26936aa68cc249dc54ec92c3f73779.tar.bz2
beziapp-19360b996e26936aa68cc249dc54ec92c3f73779.tar.lz
beziapp-19360b996e26936aa68cc249dc54ec92c3f73779.tar.xz
beziapp-19360b996e26936aa68cc249dc54ec92c3f73779.tar.zst
beziapp-19360b996e26936aa68cc249dc54ec92c3f73779.zip
Diffstat (limited to '')
-rw-r--r--js/chats.js2
1 files changed, 1 insertions, 1 deletions
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);
}
}