diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-01 12:16:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-01 12:16:30 +0900 |
commit | 5b236dfe895c7766002559570aa29c9033009228 (patch) | |
tree | a2729eaeaff2bf41ad3cbbe9d248a13d4bddd1e0 /lib/events/roommessageevent.h | |
parent | c81ce9d05dab090871f1a79ebdd54b6f88ccd1cc (diff) | |
parent | 405271605f334ad09c7dc638fc5d6ef11849cada (diff) | |
download | libquotient-5b236dfe895c7766002559570aa29c9033009228.tar.gz libquotient-5b236dfe895c7766002559570aa29c9033009228.zip |
Merge pull request #341 from quotient-im/kitsune-relations
Reactions and edited messages support
Diffstat (limited to 'lib/events/roommessageevent.h')
-rw-r--r-- | lib/events/roommessageevent.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/events/roommessageevent.h b/lib/events/roommessageevent.h index c2e075eb..7320e4ea 100644 --- a/lib/events/roommessageevent.h +++ b/lib/events/roommessageevent.h @@ -72,6 +72,7 @@ namespace QMatrixClient bool hasTextContent() const; bool hasFileContent() const; bool hasThumbnail() const; + QString replacedEvent() const; static QString rawMsgTypeForUrl(const QUrl& url); static QString rawMsgTypeForFile(const QFileInfo& fi); @@ -79,6 +80,7 @@ namespace QMatrixClient private: QScopedPointer<EventContent::TypedBase> _content; + // FIXME: should it really be static? static QJsonObject assembleContentJson(const QString& plainBody, const QString& jsonMsgType, EventContent::TypedBase* content); @@ -95,6 +97,7 @@ namespace QMatrixClient struct RelatesTo { static constexpr const char* ReplyTypeId() { return "m.in_reply_to"; } + static constexpr const char* ReplacementTypeId() { return "m.replace"; } QString type; // The only supported relation so far QString eventId; }; |