Передача chachakey и начало нового протокола вложений

This commit is contained in:
RoyceDa
2026-03-27 20:07:40 +02:00
parent 94ba139541
commit c9cff515e5
6 changed files with 31 additions and 11 deletions

View File

@@ -103,7 +103,8 @@ export function Message(props: MessageProps) {
publicKey: user.publicKey,
message: props.message,
attachments: props.attachments.filter(a => a.type != AttachmentType.MESSAGES),
message_id: props.message_id
message_id: props.message_id,
};
const avatars = useAvatars(user.publicKey);
@@ -214,7 +215,7 @@ export function Message(props: MessageProps) {
fontSize: '13px',
color: messageStyle == MessageStyle.BUBBLES ? (computedTheme == 'light' ? (props.parent?.from_me ? 'white' : 'black') : 'white') : (computedTheme == 'light' ? 'black' : 'white')
}} ml={props.avatar_no_render ? 50 : undefined} onDoubleClick={(e) => e.stopPropagation()}>
<TextParser performanceEntityLimit={ENTITY_LIMITS_TO_PARSE_IN_MESSAGE} oversizeIfTextSmallerThan={1} text={props.message.trim()}></TextParser>
<TextParser performanceEntityLimit={ENTITY_LIMITS_TO_PARSE_IN_MESSAGE} oversizeIfTextSmallerThan={1} text={props.message.trim() + props.chacha_key_plain}></TextParser>
</Box>
</Flex>
</Flex>