diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/room.cpp | 3 | ||||
-rw-r--r-- | lib/room.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index 6b9702cd..af97dc11 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -2160,6 +2160,9 @@ Room::Changes Room::processStateEvent(const RoomEvent& e) emit encryption(); // It can only be done once, so emit it here. return EncryptionOn; } + , [this] (const RoomTombstoneEvent& evt) { + emit upgraded(evt.serverMessage(), evt.successorRoomId()); + } ); } @@ -528,6 +528,10 @@ namespace QMatrixClient void fileTransferCancelled(QString id); void callEvent(Room* room, const RoomEvent* event); + + /// This room has been upgraded and won't receive updates anymore + void upgraded(QString serverMessage, QString successorId); + /// The room is about to be deleted void beforeDestruction(Room*); |