From 7ad45d8d6448c60b4c81c80fa8d6d81afd6e4a02 Mon Sep 17 00:00:00 2001 From: Max Sandholm Date: Sun, 1 Oct 2017 19:49:36 +0300 Subject: React to externally left and joined rooms, and add "leave room" button in room menu (#75) * Initial "join room" feature. * React correctly to remotely joined rooms. * Leaving rooms implemented both locally using the room menu in nheko, and reacting properly when leaving a room remotely from another client. --- include/TimelineViewManager.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/TimelineViewManager.h') diff --git a/include/TimelineViewManager.h b/include/TimelineViewManager.h index 14f47928..35dcac5a 100644 --- a/include/TimelineViewManager.h +++ b/include/TimelineViewManager.h @@ -40,6 +40,10 @@ public: void initialize(const Rooms &rooms); // Empty initialization. void initialize(const QList &rooms); + + void addRoom(const JoinedRoom &room, const QString &room_id); + void addRoom(const QString &room_id); + void sync(const Rooms &rooms); void clearAll(); -- cgit 1.5.1