diff options
author | Hubert Chathi <uhoreg@debian.org> | 2020-04-20 18:01:38 -0400 |
---|---|---|
committer | Hubert Chathi <uhoreg@debian.org> | 2020-04-20 18:01:38 -0400 |
commit | 035d428becd62869b88793bb48d59410056b1f31 (patch) | |
tree | 0cd837955fa1037c74ee524a089ff1b788b75861 /lib/events/roommessageevent.h | |
parent | 688dc682e0c6ae12dc87d781ffe53c974dad60df (diff) | |
parent | d8e1f4ee70902e2b9e5e9c699423d7f3fafe6238 (diff) | |
download | libquotient-035d428becd62869b88793bb48d59410056b1f31.tar.gz libquotient-035d428becd62869b88793bb48d59410056b1f31.zip |
Update upstream source from tag 'upstream/0.5.3.2'
Update to upstream version '0.5.3.2'
with Debian dir 49a325a077f4a2ebcd5b73adf3782a6fb5ecb3fe
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; }; |