Skip to content

Commit

Permalink
properly unpatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico040 committed Jul 4, 2024
1 parent 5c5d9aa commit 2de7a25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/HideGiftButton/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ export default {
input.props.actions = input.props.actions.filter(a => !blockList.includes(a.source));
});
},
onUnload: unpatch
onUnload() {
ChatInput.defaultProps.hideGiftButton = false;
unpatch();
}
};

0 comments on commit 2de7a25

Please sign in to comment.