'init'
This commit is contained in:
25
app/components/ReplyedMessage/ReplyedMessage.tsx
Normal file
25
app/components/ReplyedMessage/ReplyedMessage.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user