From 1713450540caeb5d4f79582099ab98915330f785 Mon Sep 17 00:00:00 2001
From: Dominik <dominik.buettner1711@gmail.com>
Date: Sat, 7 Jan 2023 21:31:45 +0100
Subject: [PlatformIndicators] Fix Chat Badges in DMs (#367)

---
 src/plugins/platformIndicators.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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

diff --git a/src/plugins/platformIndicators.tsx b/src/plugins/platformIndicators.tsx
index b7af8fb..f28f9cf 100644
--- a/src/plugins/platformIndicators.tsx
+++ b/src/plugins/platformIndicators.tsx
@@ -146,9 +146,7 @@ const indicatorLocations = {
         description: "Inside messages",
         onEnable: () => addDecoration("platform-indicator", props =>
             <ErrorBoundary noop>
-                <PlatformIndicator user={
-                    props.decorations[1]?.find(i => i.key === "new-member")?.props.message?.author
-                } inline />
+                <PlatformIndicator user={props.message?.author} inline />
             </ErrorBoundary>
         ),
         onDisable: () => removeDecoration("platform-indicator")
-- 
cgit 

