We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850ab41 commit 708ee3fCopy full SHA for 708ee3f
1 file changed
plugins/HideGiftButton/src/index.ts
@@ -10,9 +10,11 @@ let unpatch: () => boolean;
10
export default {
11
onLoad() {
12
const blockList = ["ic_thread_normal_24px", "ic_gift"].map(n => getAssetIDByName(n));
13
+ const blockTypeList = [6];
14
unpatch = after("render", ChatInput.prototype, (_, ret) => {
15
const input = findInReactTree(ret, t => "forceAnimateButtons" in t.props && t.props.actions);
- input.props.actions = input.props.actions.filter(a => !blockList.includes(a.source));
16
+ input.props.actions = input.props.actions.filter(a =>
17
+ !blockList.includes(a.source) && !blockTypeList.includes(a.type));
18
});
19
},
20
onUnload: unpatch
0 commit comments