Skip to content

Commit

Permalink
TypingTweaks: Fix usernames not being colored (#3070)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadan4 authored Dec 11, 2024
1 parent dcfddcb commit 464c4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/typingTweaks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default definePlugin({

buildSeveralUsers,

mutateChildren(props: any, users: User[], children: any) {
mutateChildren(guildId: any, users: User[], children: any) {
try {
if (!Array.isArray(children)) {
return children;
Expand All @@ -135,7 +135,7 @@ export default definePlugin({

return children.map(c =>
c.type === "strong" || (typeof c !== "string" && !React.isValidElement(c))
? <TypingUser {...props} user={users[element++]} />
? <TypingUser guildId={guildId} user={users[element++]} />
: c
);
} catch (e) {
Expand Down

0 comments on commit 464c4a9

Please sign in to comment.