Fix ViewIcons, MutualGroupDMs
This commit is contained in:
parent
610c3719c8
commit
402c8521a5
2 changed files with 4 additions and 4 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue