diff --git a/src/plugins/silentTyping/index.tsx b/src/plugins/silentTyping/index.tsx index 031db099..dae7ad4c 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{}})()",