mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 11:28:49 +03:00
Compare commits
4 commits
f5009e83a9
...
bb7b57c6d1
Author | SHA1 | Date | |
---|---|---|---|
|
bb7b57c6d1 | ||
|
1a00d91316 | ||
|
b7a5d714c6 | ||
|
fb610a3d07 |
2 changed files with 5 additions and 5 deletions
|
@ -115,17 +115,16 @@ LoginPage::onMatrixIdEntered()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!err->parse_error.empty()) {
|
if (!err->parse_error.empty()) {
|
||||||
emit versionErrorCb(tr("Autodiscovery failed. Received malformed response."));
|
|
||||||
nhlog::net()->error("Autodiscovery failed. Received malformed response. {}",
|
nhlog::net()->error("Autodiscovery failed. Received malformed response. {}",
|
||||||
err->parse_error);
|
err->parse_error);
|
||||||
|
checkHomeserverVersion();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
emit versionErrorCb(tr("Autodiscovery failed. Unknown error when "
|
|
||||||
"requesting .well-known."));
|
|
||||||
nhlog::net()->error("Autodiscovery failed. Unknown error when "
|
nhlog::net()->error("Autodiscovery failed. Unknown error when "
|
||||||
"requesting .well-known. {}",
|
"requesting .well-known. {}",
|
||||||
*err);
|
*err);
|
||||||
|
checkHomeserverVersion();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#include <QVideoFrame>
|
#include <QVideoFrame>
|
||||||
#include <QVideoSink>
|
#include <QVideoSink>
|
||||||
|
|
||||||
|
#include <fmt/format.h>
|
||||||
|
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
|
|
||||||
#include <mtx/responses/common.hpp>
|
#include <mtx/responses/common.hpp>
|
||||||
|
@ -578,8 +580,7 @@ InputBar::message(const QString &msg, MarkdownOverride useMarkdown, bool rainbow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
text.body =
|
text.body = fmt::format("{}\n{}", body.toStdString(), text.body);
|
||||||
QStringLiteral("%1\n%2").arg(body, QString::fromStdString(text.body)).toStdString();
|
|
||||||
|
|
||||||
// NOTE(Nico): rich replies always need a formatted_body!
|
// NOTE(Nico): rich replies always need a formatted_body!
|
||||||
text.format = "org.matrix.custom.html";
|
text.format = "org.matrix.custom.html";
|
||||||
|
|
Loading…
Reference in a new issue