25 lines
807 B
TypeScript
25 lines
807 B
TypeScript
import { MessageReply } from "@/app/providers/DialogProvider/useReplyMessages";
|
|
import { Message, MessageProps } from "../Messages/Message";
|
|
|
|
interface ReplyedMessageProps {
|
|
messageReply: MessageReply;
|
|
chacha_key_plain: string;
|
|
parent: MessageProps;
|
|
}
|
|
|
|
export function ReplyedMessage(props : ReplyedMessageProps) {
|
|
return (
|
|
<Message
|
|
parent={props.parent}
|
|
chacha_key_plain={props.chacha_key_plain}
|
|
from={props.messageReply.publicKey}
|
|
replyed={true}
|
|
timestamp={props.messageReply.timestamp}
|
|
from_me={false}
|
|
message={props.messageReply.message}
|
|
attachments={props.messageReply.attachments}
|
|
delivered={1}
|
|
message_id="replyed-message"
|
|
></Message>
|
|
)
|
|
} |