aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorHubert Chathi <uhoreg@debian.org>2020-04-20 18:01:38 -0400
committerHubert Chathi <uhoreg@debian.org>2020-04-20 18:01:38 -0400
commit035d428becd62869b88793bb48d59410056b1f31 (patch)
tree0cd837955fa1037c74ee524a089ff1b788b75861 /lib/room.h
parent688dc682e0c6ae12dc87d781ffe53c974dad60df (diff)
parentd8e1f4ee70902e2b9e5e9c699423d7f3fafe6238 (diff)
downloadlibquotient-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/room.h')
-rw-r--r--lib/room.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/room.h b/lib/room.h
index 33d1f4ea..87ff3b5d 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -117,6 +117,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;
@@ -154,6 +155,7 @@ namespace QMatrixClient
QString successorId() const;
QString name() const;
QStringList aliases() const;
+ QStringList altAliases() const;
QString canonicalAlias() const;
QString displayName() const;
QString topic() const;
@@ -247,6 +249,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
/**
@@ -347,6 +354,8 @@ namespace QMatrixClient
bool isFavourite() const;
/// Check whether the list of tags has m.lowpriority
bool isLowPriority() const;
+ /// Check whether this room is for server notices (MSC1452)
+ bool isServerNoticeRoom() const;
/// Check whether this room is a direct chat
Q_INVOKABLE bool isDirectChat() const;
@@ -410,6 +419,9 @@ 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
@@ -556,6 +568,7 @@ namespace QMatrixClient
void tagsAboutToChange();
void tagsChanged();
+ void updatedEvent(QString eventId);
void replacedEvent(const RoomEvent* newEvent,
const RoomEvent* oldEvent);