[skip ci] PronounDB: Do not add pronouns to automod messages

This commit is contained in:
V 2023-05-15 18:20:34 +02:00
parent 2815509c00
commit bb83c0b672
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

@ -26,10 +26,12 @@ import { settings } from "../settings";
const styles: Record<string, string> = findByPropsLazy("timestampInline"); const styles: Record<string, string> = findByPropsLazy("timestampInline");
const AUTO_MODERATION_ACTION = 24;
function shouldShow(message: Message): boolean { function shouldShow(message: Message): boolean {
if (!settings.store.showInMessages) if (!settings.store.showInMessages)
return false; return false;
if (message.author.bot || message.author.system) if (message.author.bot || message.author.system || message.type === AUTO_MODERATION_ACTION)
return false; return false;
if (!settings.store.showSelf && message.author.id === UserStore.getCurrentUser().id) if (!settings.store.showSelf && message.author.id === UserStore.getCurrentUser().id)
return false; return false;