From 4b56d47284500ab61f8e0c5cd7c807c58e1b53cb Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 9 Dec 2019 18:22:37 +0300 Subject: Room::creation() and Room::tombstone() --- lib/room.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 #include @@ -303,6 +305,11 @@ public: const RelatedEvents relatedEvents(const RoomEvent& evt, const char* relType) const; + const RoomCreateEvent* creation() const + { return getCurrentState(); } + const RoomTombstoneEvent* tombstone() const + { return getCurrentState(); } + bool displayed() const; /// Mark the room as currently displayed to the user /** -- cgit v1.2.3