summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-21 17:34:32 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-21 17:34:32 +0200
commit937caddacd628e823ab077507611a60bf823c894 (patch)
tree11db8c67f52f89595969f45b373b6f9db26192c4 /include
parentDon't send empty messages (diff)
downloadnheko-937caddacd628e823ab077507611a60bf823c894.tar.xz
Keep track of newly joined rooms in the settings manager
fixes #134
Diffstat (limited to 'include')
-rw-r--r--include/RoomList.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/RoomList.h b/include/RoomList.h
index df668ac6..f1653a38 100644
--- a/include/RoomList.h
+++ b/include/RoomList.h
@@ -44,11 +44,12 @@ public:
 
         void setInitialRooms(const QMap<QString, QSharedPointer<RoomSettings>> &settings,
                              const QMap<QString, RoomState> &states);
-        void sync(const QMap<QString, RoomState> &states);
+        void sync(const QMap<QString, RoomState> &states,
+                  QMap<QString, QSharedPointer<RoomSettings>> &settings);
 
         void clear();
 
-        void addRoom(const QSharedPointer<RoomSettings> &settings,
+        void addRoom(const QMap<QString, QSharedPointer<RoomSettings>> &settings,
                      const RoomState &state,
                      const QString &room_id);
         void removeRoom(const QString &room_id, bool reset);