1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-09 17:36:23 +00:00

Improve code quality and use new settings route

Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com>
This commit is contained in:
jamesbt365 2025-01-06 02:55:48 +00:00 committed by GitHub
parent 2759626c56
commit 4f3ae59bc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,11 +83,7 @@ export default definePlugin({
if (RelationshipStore.isBlocked(message.author.id)) {
return true;
}
if (this.options.ignoreIgnoredMessages && RelationshipStore.isIgnored(message.author.id)) {
return true;
}
return false;
return settings.store.ignoreIgnoredMessages && RelationshipStore.isIgnored(message.author.id);
} catch (e) {
new Logger("NoBlockedMessages").error("Failed to check if user is blocked or ignored:", e);
return false;