File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff line change 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." ,
1515 ]
1616 }
1717 ],
18- "changelogDate" : " 2025-03-29 "
18+ "changelogDate" : " 2025-04-22 "
1919}
You can’t perform that action at this time.
0 commit comments