mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 01:46:23 +00:00
fix typingTweaks
This commit is contained in:
parent
44c178ddd7
commit
33bca8e3ba
1 changed files with 4 additions and 5 deletions
|
@ -134,12 +134,11 @@ export default definePlugin({
|
||||||
let element = 0;
|
let element = 0;
|
||||||
|
|
||||||
return children.map(c => {
|
return children.map(c => {
|
||||||
|
if (c.type !== "strong" && !(typeof c !== "string" && !React.isValidElement(c)))
|
||||||
|
return c;
|
||||||
|
|
||||||
const user = users[element++];
|
const user = users[element++];
|
||||||
|
return <TypingUser key={user.id} guildId={guildId} user={user} />;
|
||||||
if (c.type === "strong" || (typeof c !== "string" && !React.isValidElement(c)))
|
|
||||||
return <TypingUser key={user.id} guildId={guildId} user={user} />;
|
|
||||||
|
|
||||||
return c;
|
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|
Loading…
Reference in a new issue