[skip ci] ShowHiddenChannel: Fix broken patch

This commit is contained in:
V 2023-05-12 02:30:51 +02:00
parent 5c5b009c41
commit 2b337eace1
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

View File

@ -371,7 +371,7 @@ export default definePlugin({
},
{
// Remove the open chat button for the HiddenChannelLockScreen
match: /"recents".+?null,(?=.{0,120}?channelId:(\i)\.id)/,
match: /"recents".+?null,(?=.+?channelId:(\i)\.id,showRequestToSpeakSidebar)/,
replace: (m, channel) => `${m}!$self.isHiddenChannel(${channel})&&`
}
],