[PlatformIndicators] Fix Chat Badges in DMs (#367)

This commit is contained in:
Dominik 2023-01-07 21:31:45 +01:00 committed by GitHub
parent eecc555dac
commit 1713450540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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")