export class Message {
// …
/**
* A reference to a message that this message is in reply to.
*/
readonly replyTo: ReplyTo | undefined;
// …
}
export class ReplyTo {
/**
* The formatted HTML of the replied-to message, if available. Should be used for display.
*/
readonly body: string | undefined;
/**
* The ID of the replied-to message, if available.
*/
readonly id: string | undefined;
/**
* The sender of the replied-to message.
*/
readonly sender: MessageSender;
/**
* The timestamp of the replied-to message, if available.
*/
readonly timestamp: Date | undefined;
}
Here's an example how Gajim renders replies…
The content in the gray box would be the content of the ReplyTo struct in that example.
Message
has a new fieldreplyTo
…Here's an example how Gajim renders replies…
The content in the gray box would be the content of the
ReplyTo
struct in that example.Currently replies are read-only since XEP-0461: Message Replies is not immediately compatible with XEP-0481: Content Types in Messages.
But we'll probably want to display replies in threads, like Slack does, anyways.
Refs prose-im/prose-core-client#99