ViewIcons: Fix Group Icons being clickable in channel list

This commit is contained in:
Nuckyz 2024-05-17 18:42:28 -03:00
parent c3757a2ae6
commit 8b0e7030ad
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -212,8 +212,7 @@ export default definePlugin({
},
// Group DMs top small & large icon
{
find: ".recipients.length>=2",
all: true,
find: /\.recipients\.length>=2(?!<isMultiUserDM.{0,50})/,
replacement: {
match: /null==\i\.icon\?.+?src:(\(0,\i\.getChannelIconURL\).+?\))(?=[,}])/,
replace: (m, iconUrl) => `${m},onClick:()=>$self.openImage(${iconUrl})`