diff --git a/app/components/MessageAttachments/MessageReplyMessages.tsx b/app/components/MessageAttachments/MessageReplyMessages.tsx
index c0027fc..6e24c96 100644
--- a/app/components/MessageAttachments/MessageReplyMessages.tsx
+++ b/app/components/MessageAttachments/MessageReplyMessages.tsx
@@ -41,7 +41,7 @@ export function MessageReplyMessages(props: AttachmentProps) {
}
{reply.map((msg, index) => (
-
+
))}
{showAlertInReplyMessages && a.type != AttachmentType.MESSAGES),
message_id: props.message_id,
-
+ chacha_key_plain: props.chacha_key_plain
};
const avatars = useAvatars(user.publicKey);
@@ -126,6 +126,9 @@ export function Message(props: MessageProps) {
if (props.replyed) {
return false;
}
+ if(props.chacha_key_plain == ""){
+ return false;
+ }
if (messageReply.attachments.find((v) => ATTACHMENTS_NOT_ALLOWED_TO_REPLY.includes(v.type))) {
return false;
}
@@ -215,7 +218,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()}>
-
+
diff --git a/app/providers/DialogProvider/useDialog.ts b/app/providers/DialogProvider/useDialog.ts
index c6aa6be..c176465 100644
--- a/app/providers/DialogProvider/useDialog.ts
+++ b/app/providers/DialogProvider/useDialog.ts
@@ -103,7 +103,7 @@ export function useDialog() : {
content: content,
timestamp: Date.now(),
readed: publicKey == dialog ? 1 : 0,
- chacha_key: aesChachaKey,
+ chacha_key: key.toString('utf-8'),
from_me: 1,
plain_message: message,
delivered: publicKey == dialog ? DeliveredMessageState.DELIVERED : DeliveredMessageState.WAITING,
diff --git a/app/providers/DialogProvider/useReplyMessages.ts b/app/providers/DialogProvider/useReplyMessages.ts
index 846a64c..50c4039 100644
--- a/app/providers/DialogProvider/useReplyMessages.ts
+++ b/app/providers/DialogProvider/useReplyMessages.ts
@@ -19,7 +19,7 @@ export interface MessageReply {
message: string;
attachments: Attachment[];
message_id: string;
-
+ chacha_key_plain: string;
}
export function useReplyMessages() {