gifPaste: fix unable to use gif picker in profile customization (#1947)

This commit is contained in:
AutumnVN 2023-11-03 07:56:31 +07:00 committed by GitHub
parent 27fffc8bc3
commit 44b21394b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,8 +33,8 @@ export default definePlugin({
patches: [{
find: ".handleSelectGIF=",
replacement: {
match: /\.handleSelectGIF=\i=>\{/,
replace: ".handleSelectGIF=function(gif){return $self.handleSelect(gif);"
match: /\.handleSelectGIF=(\i)=>\{/,
replace: ".handleSelectGIF=$1=>{if (!this.props.className) return $self.handleSelect($1);"
}
}],