mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Clarify how markdown is determined
This commit is contained in:
parent
1d93570814
commit
06f6a5bcca
2 changed files with 3 additions and 3 deletions
|
@ -257,7 +257,7 @@ InputBar::message(QString msg, MarkdownOverride useMarkdown)
|
|||
text.body = msg.trimmed().toStdString();
|
||||
|
||||
if ((ChatPage::instance()->userSettings()->markdown() &&
|
||||
(useMarkdown != MarkdownOverride::OFF)) ||
|
||||
(useMarkdown == MarkdownOverride::NOT_SPECIFIED)) ||
|
||||
(useMarkdown == MarkdownOverride::ON)) {
|
||||
text.formatted_body = utils::markdownToHtml(msg).toStdString();
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class QStringList;
|
|||
|
||||
enum class MarkdownOverride
|
||||
{
|
||||
NONE, // no override set
|
||||
NOT_SPECIFIED, // no override set
|
||||
ON,
|
||||
OFF,
|
||||
};
|
||||
|
@ -48,7 +48,7 @@ public slots:
|
|||
void updateState(int selectionStart, int selectionEnd, int cursorPosition, QString text);
|
||||
void openFileSelection();
|
||||
bool uploading() const { return uploading_; }
|
||||
void message(QString body, MarkdownOverride useMarkdown = MarkdownOverride::NONE);
|
||||
void message(QString body, MarkdownOverride useMarkdown = MarkdownOverride::NOT_SPECIFIED);
|
||||
|
||||
QObject *completerFor(QString completerName);
|
||||
|
||||
|
|
Loading…
Reference in a new issue