Make replies format nicer
Also lays a bit of groundwork for better reply rendering
This commit is contained in:
parent
88dc72df4f
commit
1268e9f11c
4 changed files with 49 additions and 16 deletions
|
|
@ -366,7 +366,7 @@ utils::getFormattedQuoteBody(const RelatedInfo &related, const QString &html)
|
|||
{
|
||||
return QString("<mx-reply><blockquote><a "
|
||||
"href=\"https://matrix.to/#/%1/%2\">In reply "
|
||||
"to</a>* <a href=\"https://matrix.to/#/%3\">%4</a><br "
|
||||
"to</a> <a href=\"https://matrix.to/#/%3\">%4</a><br"
|
||||
"/>%5</blockquote></mx-reply>")
|
||||
.arg(related.room,
|
||||
QString::fromStdString(related.related_event),
|
||||
|
|
@ -382,9 +382,6 @@ utils::getQuoteBody(const RelatedInfo &related)
|
|||
using MsgType = mtx::events::MessageType;
|
||||
|
||||
switch (related.type) {
|
||||
case MsgType::Text: {
|
||||
return markdownToHtml(related.quoted_body);
|
||||
}
|
||||
case MsgType::File: {
|
||||
return QString(QCoreApplication::translate("utils", "sent a file."));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue