fix(SendTimestamps): Do not add to ReviewDB input
This commit is contained in:
parent
df214e1e93
commit
f66e35b658
|
@ -124,7 +124,7 @@ export default definePlugin({
|
||||||
find: ".activeCommandOption",
|
find: ".activeCommandOption",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(.)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
|
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);
|
removePreSendListener(this.listener);
|
||||||
},
|
},
|
||||||
|
|
||||||
chatBarIcon() {
|
chatBarIcon(chatBoxProps: { type: { analyticsName: string; }; }) {
|
||||||
|
if (chatBoxProps.type.analyticsName !== "normal") return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip text="Insert Timestamp">
|
<Tooltip text="Insert Timestamp">
|
||||||
{({ onMouseEnter, onMouseLeave }) => (
|
{({ onMouseEnter, onMouseLeave }) => (
|
||||||
|
|
Loading…
Reference in a new issue