From 03523446c177aa7a71b75a6c9b4eba2e9e04c963 Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Thu, 26 Oct 2023 07:50:33 +0700 Subject: [PATCH] silentTyping: fix showIcon toggle (#1898) --- src/plugins/silentTyping/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/silentTyping/index.tsx b/src/plugins/silentTyping/index.tsx index 031db0998..dae7ad4c9 100644 --- a/src/plugins/silentTyping/index.tsx +++ b/src/plugins/silentTyping/index.tsx @@ -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{}})()",