fix(ShowMeYourName) - proper case insensitive name comparison (#2633)

Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
Jono99 2024-07-15 06:24:55 +10:00 committed by GitHub
parent bbf43c3073
commit 71977f070a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,7 +67,7 @@ export default definePlugin({
const { nick } = author;
const prefix = withMentionPrefix ? "@" : "";
if (isRepliedMessage && !settings.store.inReplies || username === nick.toLowerCase())
if (isRepliedMessage && !settings.store.inReplies || username.toLowerCase() === nick.toLowerCase())
return <>{prefix}{nick}</>;
if (settings.store.mode === "user-nick")