Fix reply

The C++ header signature was using a C++17 type alias and this was
confusing MOC. Just changing the signature to the more verbose type name
fix the bug.
This commit is contained in:
Carl Schwan
2020-11-18 13:53:19 +01:00
parent d96a548c4f
commit bd6de9cd6b
2 changed files with 43 additions and 43 deletions

View File

@@ -412,7 +412,7 @@ QString NeoChatRoom::markdownToHTML(const QString &markdown)
return result; return result;
} }
void NeoChatRoom::postArbitaryMessage(const QString &text, MessageEventType type, const QString &replyEventId) void NeoChatRoom::postArbitaryMessage(const QString &text, Quotient::RoomMessageEvent::MsgType type, const QString &replyEventId)
{ {
const auto parsedHTML = markdownToHTML(text); const auto parsedHTML = markdownToHTML(text);
const bool isRichText = Qt::mightBeRichText(parsedHTML); const bool isRichText = Qt::mightBeRichText(parsedHTML);

View File

@@ -114,8 +114,8 @@ public Q_SLOTS:
void acceptInvitation(); void acceptInvitation();
void forget(); void forget();
void sendTypingNotification(bool isTyping); void sendTypingNotification(bool isTyping);
void postArbitaryMessage(const QString &text, Quotient::MessageEventType type = Quotient::MessageEventType::Text, const QString &replyEventId = ""); void postArbitaryMessage(const QString &text, Quotient::RoomMessageEvent::MsgType type, const QString &replyEventId);
void postPlainMessage(const QString &text, Quotient::MessageEventType type = Quotient::MessageEventType::Text, const QString &replyEventId = ""); void postPlainMessage(const QString &text, Quotient::RoomMessageEvent::MsgType type = Quotient::MessageEventType::Text, const QString &replyEventId = "");
void postHtmlMessage(const QString &text, const QString &html, Quotient::MessageEventType type = Quotient::MessageEventType::Text, const QString &replyEventId = ""); void postHtmlMessage(const QString &text, const QString &html, Quotient::MessageEventType type = Quotient::MessageEventType::Text, const QString &replyEventId = "");
void changeAvatar(QUrl localFile); void changeAvatar(QUrl localFile);
void addLocalAlias(const QString &alias); void addLocalAlias(const QString &alias);