diff --git a/app/products/calls/components/calls_custom_message/calls_custom_message.tsx b/app/products/calls/components/calls_custom_message/calls_custom_message.tsx index 16640f43f0..fd7eb29252 100644 --- a/app/products/calls/components/calls_custom_message/calls_custom_message.tsx +++ b/app/products/calls/components/calls_custom_message/calls_custom_message.tsx @@ -14,6 +14,7 @@ import FormattedTime from '@components/formatted_time'; import {useServerUrl} from '@context/server'; import {useTheme} from '@context/theme'; import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme'; +import {typography} from '@utils/typography'; import {displayUsername, getUserTimezone} from '@utils/user'; import type {LimitRestrictedInfo} from '@calls/observers'; @@ -35,6 +36,10 @@ type Props = { const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { return { + title: { + ...typography('Heading', 500), + color: theme.centerChannelColor, + }, messageStyle: { flexDirection: 'row', color: changeOpacity(theme.centerChannelColor, 0.6), @@ -133,97 +138,107 @@ export const CallsCustomMessage = ({ leaveAndJoinWithAlert(intl, serverUrl, post.channelId, leaveChannelName || '', joinChannelName || '', confirmToJoin, false, Boolean(joinChannelIsDMorGM)); }; + const title = post.props.title ? ( + + {post.props.title} + + ) : null; + if (post.props.end_at) { return ( - - - - + {title} + + - + - {' '} - { + + + {' '} - } - {'•'} - + {'•'} + + - + ); } const joinTextStyle = [style.joinCallButtonText, isLimitRestricted && style.joinCallButtonTextRestricted]; return ( - - - - - - - - + <> + {title} + - { - alreadyInTheCall && + - } - { - !alreadyInTheCall && - - } - - + + + + + { + alreadyInTheCall && + + } + { + !alreadyInTheCall && + + } + + + ); };