From 4ea5650289dd99ab881cd5e5df2754f52bc8c926 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 23 Sep 2020 00:39:56 +0300 Subject: [PATCH] Consider an empty value for mentionRole as 'none' --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 37be29a..47b92d3 100644 --- a/src/utils.js +++ b/src/utils.js @@ -271,7 +271,7 @@ function getInboxMentionAllowedMentions() { }; for (const role of mentionRoles) { - if (role == null || role === "none") continue; + if (role == null || role === "none" || role === "") continue; else if (role === "here" || role === "everyone") allowedMentions.everyone = true; else allowedMentions.roles.push(role); }