Patch Fixes

This commit is contained in:
thororen1234 2025-01-29 09:32:35 -05:00
parent 7206502f4d
commit 90f2d0895e
9 changed files with 13 additions and 117 deletions

View file

@ -88,7 +88,7 @@ export default definePlugin({
find: "referencedUsernameProfile,referencedAvatarProfile",
replacement: [
{
match: /CUSTOM_GIFT.*?=(?=\(0,\i.jsx\)\(\i.FocusRing)/,
match: /CUSTOM_GIFT.*?=(?=\(0,\i.jsx\)\(\i.\i\i)/,
replace: "$&!$self.isReplyToBlocked(arguments[0].message)&&",
}
],

View file

@ -212,8 +212,8 @@ export default definePlugin({
{
// Make muted channels also appear as unread if hide unreads is false and the channel is hidden
predicate: () => settings.store.channelStyle === ChannelStyle.MutedUnread || settings.store.channelStyle === ChannelStyle.Unread,
match: /\.LOCKED;if\((?<={channel:(\i).+?)/,
replace: (m, channel) => `${m}!$self.isHiddenChannel(${channel})&&`
match: /(?<=\.LOCKED(?:;if\(|:))(?<={channel:(\i).+?)/,
replace: (_, channel) => `!$self.isHiddenChannel(${channel})&&`
}
]
},