Clarify how markdown is determined

pull/393/head
Loren Burkholder 4 years ago
parent 1d93570814
commit 06f6a5bcca
  1. 2
      src/timeline/InputBar.cpp
  2. 4
      src/timeline/InputBar.h

@ -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…
Cancel
Save