From e99aa7d498f12bf652ee731f8097b2c207460128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sat, 7 Aug 2021 16:39:00 +0300 Subject: [PATCH] Fix localMessage call to addToChatbox. Commit b527c8757a2f0456afe886b4cc155acef80b99b7 added the `kind` parameter to `addToChatbox`, but the change wasn't reflected here. --- static/galene.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/galene.js b/static/galene.js index 5983751..9fd05b8 100644 --- a/static/galene.js +++ b/static/galene.js @@ -2400,7 +2400,7 @@ function addToChatbox(peerId, dest, nick, time, privileged, history, kind, messa * @param {string} message */ function localMessage(message) { - return addToChatbox(null, null, null, Date.now(), false, null, message); + return addToChatbox(null, null, null, Date.now(), false, false, '', message); } function clearChat() { @@ -2857,6 +2857,7 @@ function handleInput() { try { c.f(cmd, rest); } catch(e) { + console.error(e); displayError(e); } return;