aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/invisibleChat/index.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/invisibleChat/index.tsx b/src/plugins/invisibleChat/index.tsx
index feae548..fb173ee 100644
--- a/src/plugins/invisibleChat/index.tsx
+++ b/src/plugins/invisibleChat/index.tsx
@@ -64,7 +64,13 @@ function Indicator() {
}
-function ChatBarIcon() {
+function ChatBarIcon(chatBoxProps: {
+ type: {
+ analyticsName: string;
+ };
+}) {
+ if (chatBoxProps.type.analyticsName !== "normal") return null;
+
return (
<Tooltip text="Encrypt Message">
{({ onMouseEnter, onMouseLeave }) => (
@@ -133,7 +139,7 @@ export default definePlugin({
find: ".activeCommandOption",
replacement: {
match: /(.)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
- replace: "$&;try{$2||$1.push($self.chatBarIcon())}catch{}",
+ replace: "$&;try{$2||$1.push($self.chatBarIcon(arguments[0]))}catch{}",
}
},
],