From fe780ff7c668c2c140f26af0c7f529b8112abc22 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Fri, 7 Feb 2020 14:04:18 +0100 Subject: [PATCH] 2089 - Removed mention from message --- back/methods/chat/send.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back/methods/chat/send.js b/back/methods/chat/send.js index 2b00df727..b0a9431c7 100644 --- a/back/methods/chat/send.js +++ b/back/methods/chat/send.js @@ -31,7 +31,7 @@ module.exports = Self => { const recipient = to.replace('@', ''); if (sender.name != recipient) - return sendMessage(sender, to, `@${sender.name}: ${message} `); + return sendMessage(sender, to, message); }; async function sendMessage(sender, channel, message) { @@ -42,6 +42,7 @@ module.exports = Self => { return sendAuth(uri, { 'channel': channel, 'avatar': avatar, + 'alias': sender.nickname, 'text': message }).catch(async error => { if (error.statusCode === 401 && !this.resendAttempted) {