import { useNicknameOrProfileNameOrShortenedPubkey } from '../../../../hooks/useParamSelector'; import { PropsForMessageRequestResponse } from '../../../../models/messageType'; import { UserUtils } from '../../../../session/utils'; import { Flex } from '../../../basic/Flex'; import { Localizer } from '../../../basic/Localizer'; import { SpacerSM, TextWithChildren } from '../../../basic/Text'; import { ReadableMessage } from './ReadableMessage'; // Note this should not respond to the disappearing message conversation setting so we use the ReadableMessage export const MessageRequestResponse = (props: PropsForMessageRequestResponse) => { const { messageId, isUnread, receivedAt, conversationId } = props; const profileName = useNicknameOrProfileNameOrShortenedPubkey(conversationId); const isFromSync = props.source === UserUtils.getOurPubKeyStrFromCache(); return ( {isFromSync ? ( ) : ( )} ); };