From 245359b656d0d649f3a07430f1b1721f61c3c751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 25 Jul 2020 20:24:20 -0400 Subject: [PATCH] fix: dont clear input if there is an error --- lib/modules/quickreply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/quickreply.js b/lib/modules/quickreply.js index 2ac6df7..42a473a 100644 --- a/lib/modules/quickreply.js +++ b/lib/modules/quickreply.js @@ -39,7 +39,7 @@ define('persona/quickreply', ['components', 'composer/autocomplete'], function(c socket.emit('posts.reply', replyData, function(err, data) { if (err) { - app.alertError(err.message); + return app.alertError(err.message); } if (data && data.queued) { app.alertSuccess(data.message);