Consider an empty value for mentionRole as 'none'

cshd
Dragory 2020-09-23 00:39:56 +03:00
parent bf47fb7406
commit 4ea5650289
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}