diff options
author | Vendicated <vendicated@riseup.net> | 2023-10-06 18:05:53 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-10-06 18:05:53 +0200 |
commit | f66e35b65875e7669e5ccdb2710d83f10f41baa3 (patch) | |
tree | 525deee8b3757fefb093fb90b246f6267e20f167 /src/plugins | |
parent | df214e1e93bf7bc6c7b768df75f10f764a41ff13 (diff) | |
download | Vencord-f66e35b65875e7669e5ccdb2710d83f10f41baa3.tar.gz Vencord-f66e35b65875e7669e5ccdb2710d83f10f41baa3.tar.bz2 Vencord-f66e35b65875e7669e5ccdb2710d83f10f41baa3.zip |
fix(SendTimestamps): Do not add to ReviewDB input
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/sendTimestamps/index.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/sendTimestamps/index.tsx b/src/plugins/sendTimestamps/index.tsx index a69136b..a69dbac 100644 --- a/src/plugins/sendTimestamps/index.tsx +++ b/src/plugins/sendTimestamps/index.tsx @@ -124,7 +124,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{}", } }, ], @@ -139,7 +139,9 @@ export default definePlugin({ removePreSendListener(this.listener); }, - chatBarIcon() { + chatBarIcon(chatBoxProps: { type: { analyticsName: string; }; }) { + if (chatBoxProps.type.analyticsName !== "normal") return null; + return ( <Tooltip text="Insert Timestamp"> {({ onMouseEnter, onMouseLeave }) => ( |