fix accountpanelserverprofile & update profilecollections

This commit is contained in:
thororen1234 2026-05-29 18:34:16 -04:00
parent 2416d1f73d
commit bfba33956e
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -14,7 +14,7 @@ export default definePlugin({
patches: [
// message and member list popouts
{
find: ".USER_PROFILE_POPOUT])",
find: '"UserProfilePopout");',
replacement: {
match: /user:\i,widgets:.{0,100}?\}\),/,
replace: "$&Vencord.Api.ProfileCollections.renderProfileCollections(arguments[0]),",

View file

@ -21,8 +21,7 @@ interface UserProfileProps {
originalRenderPopout: () => React.ReactNode;
}
const UserProfile = findComponentByCodeLazy(".POPOUT,user");
const UserProfile = findComponentByCodeLazy(".isNonUserBot()?", ",onClickContainer:");
let openAlternatePopout = false;
let accountPanelRef: React.RefObject<HTMLDivElement | null> = { current: null };