fix(smyn): reversed settings (#913)

This commit is contained in:
fawn 2023-04-15 12:20:49 +02:00 committed by GitHub
parent ea30ca418f
commit 9e6d3459e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,9 +70,9 @@ export default definePlugin({
if (username === nick || isRepliedMessage && !settings.store.inReplies)
return prefix + nick;
if (settings.store.mode === "user-nick")
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>;
if (settings.store.mode === "nick-user")
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>;
if (settings.store.mode === "nick-user")
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>;
return prefix + username;
} catch {
return author?.nick;