Fix ViewIcons, MutualGroupDMs

This commit is contained in:
Vendicated 2026-04-16 04:01:24 +02:00
parent 610c3719c8
commit 402c8521a5
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ const UserUtils = findByPropsLazy("getGlobalName");
const ProfileListClasses = findCssClassesLazy("empty", "textContainer", "connectionIcon");
const TabBarClasses = findCssClassesLazy("tabPanelScroller", "tabBarPanel");
const MutualsListClasses = findCssClassesLazy("row", "icon", "name", "details");
const ExpandableList = findComponentByCodeLazy('action:"PRESS_SECTION"', "section");
const ExpandableList = findComponentByCodeLazy('action:"PRESS_SECTION"', '"section"');
function getGroupDMName(channel: Channel) {
return channel.name ||

View file

@ -198,10 +198,10 @@ export default definePlugin({
patches: [
// Avatar component used in User DMs "User Profile" popup in the right and User Profile Modal pfp
{
find: ".AVATAR),{trackUserProfileAction:",
find: "return{avatarProps:{",
replacement: {
match: /avatarSrc:(\i),eventHandlers:(\i).+?"div",.{0,100}className:\i,/,
replace: "$&style:{cursor:\"pointer\"},onClick:()=>{$self.openAvatar($1)},",
match: /(?<=avatarProps:(\i),eventHandlers:(\i).{0,50}?)return null==/,
replace: 'Object.assign($2,{style:{cursor:"pointer"},onClick:()=>$self.openAvatar($1.src)});$&',
}
},
// Banners