Further Improve Reply Functionality
Quoted replies now include matrix.to links for the event and the user. UI Rendering has been (slightly) improved... still very WIP. Restructured the reply structure in the code for future usability improvements.
This commit is contained in:
parent
9f310fed09
commit
129beb57c9
15 changed files with 177 additions and 74 deletions
|
|
@ -314,6 +314,20 @@ utils::markdownToHtml(const QString &text)
|
|||
return result;
|
||||
}
|
||||
|
||||
QString
|
||||
utils::getFormattedQuoteBody(const RelatedInfo &related, const QString &html)
|
||||
{
|
||||
return QString("<mx-reply><blockquote><a "
|
||||
"href=\"https://matrix.to/#/!%1\">In reply "
|
||||
"to</a><a href=\"https://matrix.to/#/%2\">%3</a><br "
|
||||
"/>%4</blockquote></mx-reply>")
|
||||
.arg(QString::fromStdString(related.related_event),
|
||||
related.quoted_user,
|
||||
related.quoted_user,
|
||||
related.quoted_body) +
|
||||
html;
|
||||
}
|
||||
|
||||
QString
|
||||
utils::linkColor()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue