Унификация кодирования chacha_key_plain теперь он в hex, а не в utf8 с потерей данных
This commit is contained in:
@@ -42,7 +42,7 @@ export function MessageReplyMessages(props: AttachmentProps) {
|
||||
<Skeleton h={50} w={'100%'}></Skeleton>
|
||||
}
|
||||
{reply.map((msg : MessageReply, index) => (
|
||||
<ReplyedMessage parent={props.parent} chacha_key_plain={Buffer.from(msg.chacha_key_plain, 'hex').toString('utf-8')} key={index} messageReply={msg}></ReplyedMessage>
|
||||
<ReplyedMessage parent={props.parent} chacha_key_plain={msg.chacha_key_plain} key={index} messageReply={msg}></ReplyedMessage>
|
||||
))}
|
||||
{showAlertInReplyMessages && <Alert style={{
|
||||
borderTopLeftRadius: 0,
|
||||
|
||||
@@ -104,6 +104,9 @@ export function Message(props: MessageProps) {
|
||||
message: props.message,
|
||||
attachments: props.attachments.filter(a => a.type != AttachmentType.MESSAGES),
|
||||
message_id: props.message_id,
|
||||
/**
|
||||
* Кодируем в hex чтобы было удобнее передавать по сети
|
||||
*/
|
||||
chacha_key_plain: props.chacha_key_plain
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user