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/room.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/room.h')
-rw-r--r-- | lib/room.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -123,6 +123,7 @@ namespace QMatrixClient public: using Timeline = std::deque<TimelineItem>; using PendingEvents = std::vector<PendingEventItem>; + using RelatedEvents = QVector<const RoomEvent*>; using rev_iter_t = Timeline::const_reverse_iterator; using timeline_iter_t = Timeline::const_iterator; @@ -270,6 +271,11 @@ namespace QMatrixClient PendingEvents::iterator findPendingEvent(const QString & txnId); PendingEvents::const_iterator findPendingEvent(const QString & txnId) const; + const RelatedEvents relatedEvents(const QString& evtId, + const char* relType) const; + const RelatedEvents relatedEvents(const RoomEvent& evt, + const char* relType) const; + bool displayed() const; /// Mark the room as currently displayed to the user /** @@ -430,6 +436,8 @@ namespace QMatrixClient const QString& html, MessageEventType type = MessageEventType::Text); QString postHtmlText(const QString& plainText, const QString& html); + /// Send a reaction on a given event with a given key + QString postReaction(const QString& eventId, const QString& key); QString postFile(const QString& plainText, const QUrl& localPath, bool asGenericFile = false); /** Post a pre-created room message event @@ -590,6 +598,7 @@ namespace QMatrixClient void tagsAboutToChange(); void tagsChanged(); + void updatedEvent(QString eventId); void replacedEvent(const RoomEvent* newEvent, const RoomEvent* oldEvent); |