summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-22 11:27:00 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-22 11:27:00 +0300
commit6d0bc0c05ee5e8ac9146ffa4808f6a013d1c7438 (patch)
tree104e4697dce16695e374429ae7e8629d91a7e381 /include
parentInitialize views before room list (diff)
downloadnheko-6d0bc0c05ee5e8ac9146ffa4808f6a013d1c7438.tar.xz
Strip whitespace from room names for QuickSwitcher
Diffstat (limited to 'include')
-rw-r--r--include/Cache.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/Cache.h b/include/Cache.h

index 6e54f1e9..9a151aba 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -136,7 +136,7 @@ public: void populateMembers(); std::vector<std::string> joinedRooms(); - QMap<QString, RoomInfo> roomInfo(); + QMap<QString, RoomInfo> roomInfo(bool withInvites = true); //! Calculate & return the name of the room. QString getRoomName(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb); @@ -331,9 +331,6 @@ private: void saveInvites(lmdb::txn &txn, const std::map<std::string, mtx::responses::InvitedRoom> &rooms); - //! Remove any saved invites that are not found in the input. - void removeStaleInvites(lmdb::txn &txn, const std::map<std::string, bool> &curr); - //! Sends signals for the rooms that are removed. void removeLeftRooms(lmdb::txn &txn, const std::map<std::string, mtx::responses::LeftRoom> &rooms)