Fix WhoReacted

This commit is contained in:
Vendicated 2024-03-28 03:43:37 +01:00
parent 8ab56f5bcf
commit 74b6ceee78
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -93,14 +93,15 @@ export default definePlugin({
description: "Renders the avatars of users who reacted to a message",
authors: [Devs.Ven, Devs.KannaDev, Devs.newwares],
patches: [{
patches: [
{
find: ",reactionRef:",
replacement: {
match: /(\i)\?null:\(0,\i\.jsx\)\(\i\.\i,{className:\i\.reactionCount,.*?}\),/,
replace: "$&$1?null:$self.renderUsers(this.props),"
}
}, {
find: '.displayName="MessageReactionsStore";',
find: '"MessageReactionsStore"',
replacement: {
match: /(?<=CONNECTION_OPEN:function\(\){)(\i)={}/,
replace: "$&;$self.reactions=$1"
@ -110,11 +111,12 @@ export default definePlugin({
find: "cleanAutomaticAnchor(){",
replacement: {
match: /this\.automaticAnchor=null,this\.messageFetchAnchor=null,/,
replace: "$&$self.setScrollObj(this),"
match: /constructor\(\i\)\{(?=.{0,100}automaticAnchor)/,
replace: "$&$self.setScrollObj(this);"
}
}
],
setScrollObj(scroll: any) {
Scroll = scroll;
},