diff options
author | rstular <rok@stular.eu> | 2020-05-15 02:03:18 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-15 02:03:47 +0200 |
commit | 662437081064d2addc3cb003855409403d4ec12f (patch) | |
tree | 50bda414b81af15d62231aa9e35c167c88d9068b /js/chats.js | |
parent | Merge branch 'dev' of github.com:beziapp/beziapp.github.io into dev (diff) | |
download | beziapp-662437081064d2addc3cb003855409403d4ec12f.tar beziapp-662437081064d2addc3cb003855409403d4ec12f.tar.gz beziapp-662437081064d2addc3cb003855409403d4ec12f.tar.bz2 beziapp-662437081064d2addc3cb003855409403d4ec12f.tar.lz beziapp-662437081064d2addc3cb003855409403d4ec12f.tar.xz beziapp-662437081064d2addc3cb003855409403d4ec12f.tar.zst beziapp-662437081064d2addc3cb003855409403d4ec12f.zip |
Diffstat (limited to 'js/chats.js')
-rw-r--r-- | js/chats.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/chats.js b/js/chats.js index 3073ac9..c60991e 100644 --- a/js/chats.js +++ b/js/chats.js @@ -133,7 +133,7 @@ async function sendMessage(recipient_number = null, body = null) { try { let gsecInstance = new gsec(); gsecInstance.login(username, password).then( () => { - gsecInstance.sendMessage(recipient_number, "beziapp-ctlmsg-chat-" + body, "BežiApp chat: " + body).then((value) => { + gsecInstance.sendMessage(recipient_number, "ba-ctlmsg-chat-" + body, "BežiApp chat: " + body).then((value) => { addMessage(0, body); setLoading(false); }).catch((err) => { @@ -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) === "beziapp-ctlmsg-chat-") { + if (message.subject.substring(0, 20) === "ba-ctlmsg-chat-") { addMessage(whom, message.subject.substring(20), 2, message.date.getTime); } } |