Merge branch 'dev' into immediate-finds

This commit is contained in:
Nuckyz 2024-05-09 03:01:44 -03:00
commit a892a507be
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

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