From 11900689bf510f19fd21376367da4d0b6371bf2a Mon Sep 17 00:00:00 2001 From: Essem Date: Thu, 14 Mar 2024 20:51:15 -0500 Subject: [PATCH] Use a consumer for identity --- .../flavours/glitch/components/status.jsx | 21 ++++++++++++------- .../features/ui/util/identity_consumer.jsx | 16 ++++++++++++++ 2 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 app/javascript/flavours/glitch/features/ui/util/identity_consumer.jsx diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index ad3f86c7c1..0faa6d1dbd 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -20,6 +20,7 @@ import Card from '../features/status/components/card'; // to use the progress bar to show download progress import Bundle from '../features/ui/components/bundle'; import { MediaGallery, Video, Audio } from '../features/ui/util/async-components'; +import { IdentityConsumer } from '../features/ui/util/identity_consumer'; import { SensitiveMediaContext } from '../features/ui/util/sensitive_media_context'; import { displayMedia, visibleReactions } from '../initial_state'; @@ -845,14 +846,18 @@ class Status extends ImmutablePureComponent { {...statusContentProps} /> - + + {identity => ( + + )} + {(!isCollapsed || !(muted || !settings.getIn(['collapsed', 'show_action_bar']))) && (