aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDominik <dominik.buettner1711@gmail.com>2023-01-07 21:31:45 +0100
committerGitHub <noreply@github.com>2023-01-07 21:31:45 +0100
commit1713450540caeb5d4f79582099ab98915330f785 (patch)
tree75b84b46b012de008cd7f3f3617c2fa500859026 /src
parenteecc555dace0a2993d4dc9c479d11be9ac9ad042 (diff)
downloadVencord-1713450540caeb5d4f79582099ab98915330f785.tar.gz
Vencord-1713450540caeb5d4f79582099ab98915330f785.tar.bz2
Vencord-1713450540caeb5d4f79582099ab98915330f785.zip
[PlatformIndicators] Fix Chat Badges in DMs (#367)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platformIndicators.tsx4
1 files changed, 1 insertions, 3 deletions
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")