fix whoreacted, betteruploadbutton (#1877)

This commit is contained in:
rini 2023-10-25 14:09:37 -03:00 committed by GitHub
parent bb900785ed
commit f385dc380e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -96,8 +96,8 @@ export default definePlugin({
patches: [{
find: ",reactionRef:",
replacement: {
match: /(?<=(\i)=(\i)\.hideCount,)(.+?reactionCount.+?\}\))/,
replace: (_, hideCount, props, rest) => `whoReactedProps=${props},${rest},${hideCount}?null:$self.renderUsers(whoReactedProps)`
match: /(\i)\?null:\(0,\i\.jsx\)\(\i\.\i,{className:\i\.reactionCount,.*?}\),/,
replace: "$&$1?null:$self.renderUsers(this.props),"
}
}, {
find: '.displayName="MessageReactionsStore";',