Skip to content

Commit 6f4babe

Browse files
committed
Fix PlatformIndicator
Fixes #445
1 parent 05bb278 commit 6f4babe

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

PlatformIndicators/index.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,17 @@ export default class PlatformIndicators {
7777
if (!Settings.get("showInMemberList", true)) return;
7878
if (Settings.get("ignoreBots", true) && props.user.bot) return;
7979
const children = ret.props.children();
80-
const obj = findInReactTree(children, e => e?.avatar && e?.name);
81-
82-
if (obj)
83-
children?.props?.name?.props?.children?.props?.children?.push(
80+
const usr = findInReactTree(children, e => e?.avatar && e?.name);
81+
let childs = children?.props?.name?.props?.children;
82+
if (usr && childs) {
83+
children.props.name.props.children = [
84+
childs,
8485
<StatusIndicators
8586
userId={props.user.id}
8687
type="MemberList"
8788
/>
88-
);
89+
];
90+
}
8991
// discord made it a method to return the children :(
9092
ret.props.children = () => children;
9193
});

PlatformIndicators/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "APlatformIndicators",
3-
"version": "1.5.15",
3+
"version": "1.5.16",
44
"author": "Strencher",
55
"authorId": "415849376598982656",
66
"description": "Adds indicators for every platform that the user is using.",
@@ -15,5 +15,5 @@
1515
]
1616
}
1717
],
18-
"changelogDate": "2025-03-29"
18+
"changelogDate": "2025-04-22"
1919
}

0 commit comments

Comments
 (0)