summary refs log tree commit diff
path: root/include/Cache.h
diff options
context:
space:
mode:
authorMax Sandholm <max@sandholm.org>2017-10-01 19:49:36 +0300
committermujx <mujx@users.noreply.github.com>2017-10-01 19:49:36 +0300
commit7ad45d8d6448c60b4c81c80fa8d6d81afd6e4a02 (patch)
tree821124200c7dac85128790115d527791c1fc4945 /include/Cache.h
parentMore badges (diff)
downloadnheko-7ad45d8d6448c60b4c81c80fa8d6d81afd6e4a02.tar.xz
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.
Diffstat (limited to 'include/Cache.h')
-rw-r--r--include/Cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/Cache.h b/include/Cache.h

index 1be56620..0f6e5cd2 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -37,6 +37,8 @@ public: inline void unmount(); inline QString memberDbName(const QString &roomid); + void removeRoom(const QString &roomid); + private: void setNextBatchToken(lmdb::txn &txn, const QString &token); void insertRoomState(lmdb::txn &txn, const QString &roomid, const RoomState &state);