Fix WhoReacted
This commit is contained in:
parent
8ab56f5bcf
commit
74b6ceee78
1 changed files with 21 additions and 19 deletions
|
@ -93,28 +93,30 @@ export default definePlugin({
|
||||||
description: "Renders the avatars of users who reacted to a message",
|
description: "Renders the avatars of users who reacted to a message",
|
||||||
authors: [Devs.Ven, Devs.KannaDev, Devs.newwares],
|
authors: [Devs.Ven, Devs.KannaDev, Devs.newwares],
|
||||||
|
|
||||||
patches: [{
|
patches: [
|
||||||
find: ",reactionRef:",
|
{
|
||||||
replacement: {
|
find: ",reactionRef:",
|
||||||
match: /(\i)\?null:\(0,\i\.jsx\)\(\i\.\i,{className:\i\.reactionCount,.*?}\),/,
|
replacement: {
|
||||||
replace: "$&$1?null:$self.renderUsers(this.props),"
|
match: /(\i)\?null:\(0,\i\.jsx\)\(\i\.\i,{className:\i\.reactionCount,.*?}\),/,
|
||||||
}
|
replace: "$&$1?null:$self.renderUsers(this.props),"
|
||||||
}, {
|
}
|
||||||
find: '.displayName="MessageReactionsStore";',
|
}, {
|
||||||
replacement: {
|
find: '"MessageReactionsStore"',
|
||||||
match: /(?<=CONNECTION_OPEN:function\(\){)(\i)={}/,
|
replacement: {
|
||||||
replace: "$&;$self.reactions=$1"
|
match: /(?<=CONNECTION_OPEN:function\(\){)(\i)={}/,
|
||||||
}
|
replace: "$&;$self.reactions=$1"
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
|
{
|
||||||
|
|
||||||
find: "cleanAutomaticAnchor(){",
|
find: "cleanAutomaticAnchor(){",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /this\.automaticAnchor=null,this\.messageFetchAnchor=null,/,
|
match: /constructor\(\i\)\{(?=.{0,100}automaticAnchor)/,
|
||||||
replace: "$&$self.setScrollObj(this),"
|
replace: "$&$self.setScrollObj(this);"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
],
|
],
|
||||||
|
|
||||||
setScrollObj(scroll: any) {
|
setScrollObj(scroll: any) {
|
||||||
Scroll = scroll;
|
Scroll = scroll;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue