Skip to content

Commit 0e19db7

Browse files
committed
Update the max account version.
Add more logs. Signed-off-by: Camila Ayres <[email protected]>
1 parent 68e4bf5 commit 0e19db7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/gui/accountmanager.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ constexpr auto unbrandedRelativeConfigLocationC = "/Nextcloud/nextcloud.cfg";
7777
constexpr auto unbrandedCfgFileNameC = "nextcloud.cfg";
7878

7979
// The maximum versions that this client can read
80-
constexpr auto maxAccountsVersion = 2;
81-
constexpr auto maxAccountVersion = 1;
80+
constexpr auto maxAccountsVersion = 13;
81+
constexpr auto maxAccountVersion = 13;
8282

8383
constexpr auto serverHasValidSubscriptionC = "serverHasValidSubscription";
8484
}
@@ -149,6 +149,9 @@ void AccountManager::backwardMigrationSettingsKeys(QStringList *deleteKeys, QStr
149149
const auto settings = ConfigFile::settingsWithGroup(QLatin1String(accountsC));
150150
const auto accountsVersion = settings->value(QLatin1String(versionC)).toInt();
151151

152+
qCInfo(lcAccountManager) << "Checking for accounts versions.";
153+
qCInfo(lcAccountManager) << "Config accounts version:" << accountsVersion;
154+
qCInfo(lcAccountManager) << "Max accounts Version is set to:" << maxAccountsVersion;
152155
if (accountsVersion <= maxAccountsVersion) {
153156
const auto settingsChildGroups = settings->childGroups();
154157
for (const auto &accountId : settingsChildGroups) {
@@ -157,6 +160,7 @@ void AccountManager::backwardMigrationSettingsKeys(QStringList *deleteKeys, QStr
157160

158161
if (accountVersion > maxAccountVersion) {
159162
ignoreKeys->append(settings->group());
163+
qCInfo(lcAccountManager) << "Ignoring account" << accountId << "because of version" << accountVersion;
160164
}
161165
settings->endGroup();
162166
}

0 commit comments

Comments
 (0)