Merge remote-tracking branch 'upstream/dev'

This commit is contained in:
thororen1234 2024-06-12 13:44:23 -04:00
commit 8a093424c0
9 changed files with 40 additions and 205 deletions

View file

@ -281,6 +281,8 @@ function getChannelLabelAndIconUrl(channel: Channel) {
}
function ChannelMessageEmbedAccessory({ message, channel }: MessageEmbedProps): JSX.Element | null {
const compact = TextAndImagesSettingsStores.MessageDisplayCompact.useSetting();
const dmReceiver = UserStore.getUser(ChannelStore.getChannel(channel.id).recipients?.[0]);
const [channelLabel, iconUrl] = getChannelLabelAndIconUrl(channel);
@ -305,6 +307,7 @@ function ChannelMessageEmbedAccessory({ message, channel }: MessageEmbedProps):
message={message}
channel={channel}
subscribeToComponentDispatch={false}
compact={compact}
/>
</div>
)}