aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-09 18:22:37 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-09 18:58:04 +0300
commit4b56d47284500ab61f8e0c5cd7c807c58e1b53cb (patch)
tree02c17ce03020d9782517cde099f28ee7ca4c85d6 /lib
parent3e81ba0da47278f383ce8c329010602f84a50482 (diff)
downloadlibquotient-4b56d47284500ab61f8e0c5cd7c807c58e1b53cb.tar.gz
libquotient-4b56d47284500ab61f8e0c5cd7c807c58e1b53cb.zip
Room::creation() and Room::tombstone()
Diffstat (limited to 'lib')
-rw-r--r--lib/room.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/room.h b/lib/room.h
index fa3c6ff3..10f18742 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -27,6 +27,8 @@
#include "events/accountdataevents.h"
#include "events/encryptedevent.h"
#include "events/roommessageevent.h"
+#include "events/roomcreateevent.h"
+#include "events/roomtombstoneevent.h"
#include <QtCore/QJsonObject>
#include <QtGui/QImage>
@@ -303,6 +305,11 @@ public:
const RelatedEvents relatedEvents(const RoomEvent& evt,
const char* relType) const;
+ const RoomCreateEvent* creation() const
+ { return getCurrentState<RoomCreateEvent>(); }
+ const RoomTombstoneEvent* tombstone() const
+ { return getCurrentState<RoomTombstoneEvent>(); }
+
bool displayed() const;
/// Mark the room as currently displayed to the user
/**