From 5be55ca92dfad9ba90221f865e140f2f79b415c5 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Fri, 7 Feb 2020 11:50:09 +0100 Subject: [PATCH] #2083 Login on auth error --- back/methods/chat/send.js | 1 + 1 file changed, 1 insertion(+) diff --git a/back/methods/chat/send.js b/back/methods/chat/send.js index c36178b0f..2b00df727 100644 --- a/back/methods/chat/send.js +++ b/back/methods/chat/send.js @@ -46,6 +46,7 @@ module.exports = Self => { }).catch(async error => { if (error.statusCode === 401 && !this.resendAttempted) { this.resendAttempted = true; + this.auth = null; return sendMessage(sender, channel, message); }