From b9d8069fc0fcb56c3701b7b7d82ef3c40a29d58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Fri, 15 May 2020 13:31:27 +0200 Subject: =?UTF-8?q?removed=20Be=C5=BEiApp=20from=20chats=20sent=20to=20Gim?= =?UTF-8?q?SIS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/chats.js | 2 +- js/lang/bundle.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/chats.js b/js/chats.js index 7757e54..df937cf 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, "ba-ctlmsg-chat-" + body, "BežiApp chat: " + body).then((value) => { + gsecInstance.sendMessage(recipient_number, "ba-ctlmsg-chat-" + body, S("chatExternalInfo") + body).then((value) => { addMessage(0, body); setLoading(false); }).catch((err) => { diff --git a/js/lang/bundle.js b/js/lang/bundle.js index 4103f7b..8b81c2d 100644 --- a/js/lang/bundle.js +++ b/js/lang/bundle.js @@ -221,6 +221,7 @@ var langstrings = { select: "select", mustSelectRecipient: "you have to select a recipient before chatting. Open directory on the left side by clicking on the top left addressbook button and select a recipient in order to start chatting with them", recipientNotInDirectory: "recipient is not in directory.", + chatExternalInfo: "you have just received a chat. Chats are not supported by GimSIS, so you must reply by changing the subject to something else. Chat body: ", // meals loginToLopolis: "login to Lopolis", loginToLopolisNote: "it seems like you're not currently logged in to eRestavracija, so this form has been presented to you. You have a different username and password combination used for applying and opting out of of menus. In order to use this feature, you have to log in with your Lopolis account.", @@ -404,6 +405,7 @@ var langstrings = { select: "izberi", mustSelectRecipient: "pred klepetom morate izbrati sogovornika. Odprite imenik (meni na levi strani) s pritiskom na gumb \"imenik\" zgoraj desno in izberite sogovornika.", recipientNotInDirectory: "izbrane osebe ni v imeniku", + chatExternalInfo: "dobili ste kratko sporočilo v standardu, ki ga GimSIS ne podpira. Pri odgovarjanju spremenite zadevo. Vsebina sporočila: ", // meals loginToLopolis: "prijava v Lopolis", loginToLopolisNote: "izgleda, da niste prijavljeni v eRestavracijo, zato se vam je prikazal prijavni obrazec. Za uporavljanje s prehrano se uporablja druga kombinacija uporabniškega imena in gesla, zato se prijavite s svojimi Lopolis prijavnimi podatki za nadaljevanje.", -- cgit v1.2.3