[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

@ -146,9 +146,7 @@ const indicatorLocations = {
description: "Inside messages", description: "Inside messages",
onEnable: () => addDecoration("platform-indicator", props => onEnable: () => addDecoration("platform-indicator", props =>
<ErrorBoundary noop> <ErrorBoundary noop>
<PlatformIndicator user={ <PlatformIndicator user={props.message?.author} inline />
props.decorations[1]?.find(i => i.key === "new-member")?.props.message?.author
} inline />
</ErrorBoundary> </ErrorBoundary>
), ),
onDisable: () => removeDecoration("platform-indicator") onDisable: () => removeDecoration("platform-indicator")