silentTyping: fix showIcon toggle (#1898)

This commit is contained in:
AutumnVN 2023-10-26 07:50:33 +07:00 committed by GitHub
parent 25dc25c707
commit 03523446c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,6 +86,7 @@ export default definePlugin({
},
{
find: "ChannelTextAreaButtons",
predicate: () => settings.store.showIcon,
replacement: {
match: /(\i)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
replace: "$&,(()=>{try{$2||$1.push($self.chatBarIcon(arguments[0]))}catch{}})()",