aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp3
-rw-r--r--lib/room.h4
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());
+ }
);
}
diff --git a/lib/room.h b/lib/room.h
index ef832d1a..137b383d 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -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*);