aboutsummaryrefslogtreecommitdiff
path: root/lib/syncdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/syncdata.h')
-rw-r--r--lib/syncdata.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/syncdata.h b/lib/syncdata.h
index d8007db9..aa8948bc 100644
--- a/lib/syncdata.h
+++ b/lib/syncdata.h
@@ -59,7 +59,7 @@ namespace QMatrixClient {
* \return the list of rooms with missing cache files; always
* empty when parsing response from /sync
*/
- void parseJson(const QJsonObject& json);
+ void parseJson(const QJsonObject& json, const QString& baseDir = {});
Events&& takePresenceData();
Events&& takeAccountData();
@@ -70,7 +70,8 @@ namespace QMatrixClient {
QStringList unresolvedRooms() const { return unresolvedRoomIds; }
- static std::pair<int, int> cacheVersion() { return { 8, 0 }; }
+ static std::pair<int, int> cacheVersion() { return { 9, 0 }; }
+ static QString fileNameForRoom(QString roomId);
private:
QString nextBatch_;