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)
|