fix: use I18n component in subtleNotifications

pull/3206/head
Ryan Miller 8 months ago
parent a26d8ef61f
commit 3f272244d2

@ -98,7 +98,7 @@ export const NoMessageInConversation = () => {
// TODOLATER use this selector across the whole application (left pane excluded) // TODOLATER use this selector across the whole application (left pane excluded)
const name = useSelectedNicknameOrProfileNameOrShortenedPubkey(); const name = useSelectedNicknameOrProfileNameOrShortenedPubkey();
const messageText = useMemo(() => { const content = useMemo(() => {
if (isMe) { if (isMe) {
return <I18n token="noteToSelfEmpty" />; return <I18n token="noteToSelfEmpty" />;
} }
@ -120,9 +120,7 @@ export const NoMessageInConversation = () => {
return ( return (
<Container data-testid="empty-conversation-notification"> <Container data-testid="empty-conversation-notification">
<TextInner> <TextInner>{content}</TextInner>
<SessionHtmlRenderer html={messageText} />
</TextInner>
</Container> </Container>
); );
}; };

Loading…
Cancel
Save