From 46b14cb2e087ba251da5b73d04b0dc6a4d22d40f Mon Sep 17 00:00:00 2001
From: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Date: Sun, 20 Nov 2022 20:56:17 -0300
Subject: feat(plugins):WhoReacted keep reaction count (#231)

---
 src/plugins/whoReacted.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/plugins/whoReacted.tsx')

diff --git a/src/plugins/whoReacted.tsx b/src/plugins/whoReacted.tsx
index b94f78e..0079983 100644
--- a/src/plugins/whoReacted.tsx
+++ b/src/plugins/whoReacted.tsx
@@ -56,8 +56,8 @@ export default definePlugin({
     patches: [{
         find: ",reactionRef:",
         replacement: {
-            match: /(=(.{1,3})\.hideEmoji),(.+?)\?null:\(0,.{1,3}\.jsxs?\)\(.{1,10},\{.{0,20}reactionCount.+?\}\)/,
-            replace: "$1,whoReactedProps=$2,$3?null:Vencord.Plugins.plugins.WhoReacted.renderUsers(whoReactedProps)"
+            match: /((.)=(.{1,3})\.hideCount)(,.+?reactionCount.+?\}\))/,
+            replace: "$1,whoReactedProps=$3$4,$2?null:Vencord.Plugins.plugins.WhoReacted.renderUsers(whoReactedProps)"
         }
     }],
 
-- 
cgit 

