diff --git a/back/methods/chat/send.js b/back/methods/chat/send.js index fcb49f4b88..51ecb801af 100644 --- a/back/methods/chat/send.js +++ b/back/methods/chat/send.js @@ -31,9 +31,9 @@ module.exports = Self => { const recipient = to.replace('@', ''); if (sender.name != recipient) { - await sendMessage(sender, to, message); + const request = await sendMessage(sender, to, message); - return true; + return request ? request : false; } return false;