mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Make lint
This commit is contained in:
parent
91155bf803
commit
1d93570814
2 changed files with 8 additions and 6 deletions
|
@ -256,7 +256,9 @@ InputBar::message(QString msg, MarkdownOverride useMarkdown)
|
|||
mtx::events::msg::Text text = {};
|
||||
text.body = msg.trimmed().toStdString();
|
||||
|
||||
if ((ChatPage::instance()->userSettings()->markdown() && (useMarkdown != MarkdownOverride::OFF)) || (useMarkdown == MarkdownOverride::ON)) {
|
||||
if ((ChatPage::instance()->userSettings()->markdown() &&
|
||||
(useMarkdown != MarkdownOverride::OFF)) ||
|
||||
(useMarkdown == MarkdownOverride::ON)) {
|
||||
text.formatted_body = utils::markdownToHtml(msg).toStdString();
|
||||
|
||||
// Don't send formatted_body, when we don't need to
|
||||
|
@ -478,9 +480,9 @@ InputBar::command(QString command, QString args)
|
|||
} else if (command == "rotate-megolm-session") {
|
||||
cache::dropOutboundMegolmSession(room->roomId().toStdString());
|
||||
} else if (command == "md") {
|
||||
message(args, MarkdownOverride::ON);
|
||||
message(args, MarkdownOverride::ON);
|
||||
} else if (command == "plain") {
|
||||
message(args, MarkdownOverride::OFF);
|
||||
message(args, MarkdownOverride::OFF);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@ class QStringList;
|
|||
|
||||
enum class MarkdownOverride
|
||||
{
|
||||
NONE, // no override set
|
||||
ON,
|
||||
OFF,
|
||||
NONE, // no override set
|
||||
ON,
|
||||
OFF,
|
||||
};
|
||||
|
||||
class InputBar : public QObject
|
||||
|
|
Loading…
Reference in a new issue