pub fn notice_reply_html(
        reply: impl Into<String>,
        html_reply: impl Into<String>,
        original_message: &MessageEvent,
    ) -> Self {
        let quoted = get_plain_quote_fallback(original_message);
        let quoted_html = get_html_quote_fallback(original_message);

        let body = format!("{}\n\n{}", quoted, reply.into());
        let html_body = format!("{}\n\n{}", quoted_html, html_reply.into());

        Self {
            relates_to: Some(Relation::Reply {
                in_reply_to: InReplyTo { event_id: original_message.event_id.clone() },
            }),
            ..Self::notice_html(body, html_body)
        }
    }
/// Creates a html text notice reply to a message.
Creates a html text notice reply to a message.
Creates a html text notice reply to a message .
pub fn notice_reply_html(
        reply: impl Into<String>,
        html_reply: impl Into<String>,
        original_message: &MessageEvent,
    ) -> Self {
        let quoted = get_plain_quote_fallback(original_message);
        let quoted_html = get_html_quote_fallback(original_message);
        let body = format!("{}\n\n{}", quoted, reply.into());
        let html_body = format!("{}\n\n{}", quoted_html, html_reply.into());
        Self {
            relates_to: Some(Relation::Reply {
                in_reply_to: InReplyTo { event_id: original_message.event_id.clone() },
            }),
            ..Self::notice_html(body, html_body)
        }
    }
pub fn notice_reply_html ( reply : impl Into < String > , html_reply : impl Into < String > , original_message : & MessageEvent , ) -> Self { let quoted = get_plain_quote_fallback ( original_message ) ; let quoted_html = get_html_quote_fallback ( original_message ) ; let body = format ! ( " \n \n " quoted reply into ( ) ) ; let html_body = format ! ( " \n \n " quoted_html html_reply into ( ) ) ; Self { relates_to : Some ( Relation :: Reply { in_reply_to : InReplyTo { event_id : original_message . event_id . clone ( ) } , } ) , .. Self :: notice_html ( body , html_body ) } }
Creates a html text notice reply to a message.
Creates a html text notice reply to a message .
reply
impl Into<String>
html_reply
impl Into<String>
original_message
&MessageEvent