@@ -77,8 +77,8 @@ constexpr auto unbrandedRelativeConfigLocationC = "/Nextcloud/nextcloud.cfg";
77
77
constexpr auto unbrandedCfgFileNameC = " nextcloud.cfg" ;
78
78
79
79
// 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 ;
82
82
83
83
constexpr auto serverHasValidSubscriptionC = " serverHasValidSubscription" ;
84
84
}
@@ -149,6 +149,9 @@ void AccountManager::backwardMigrationSettingsKeys(QStringList *deleteKeys, QStr
149
149
const auto settings = ConfigFile::settingsWithGroup (QLatin1String (accountsC));
150
150
const auto accountsVersion = settings->value (QLatin1String (versionC)).toInt ();
151
151
152
+ qCInfo (lcAccountManager) << " Checking for accounts versions." ;
153
+ qCInfo (lcAccountManager) << " Config accounts version:" << accountsVersion;
154
+ qCInfo (lcAccountManager) << " Max accounts Version is set to:" << maxAccountsVersion;
152
155
if (accountsVersion <= maxAccountsVersion) {
153
156
const auto settingsChildGroups = settings->childGroups ();
154
157
for (const auto &accountId : settingsChildGroups) {
@@ -157,6 +160,7 @@ void AccountManager::backwardMigrationSettingsKeys(QStringList *deleteKeys, QStr
157
160
158
161
if (accountVersion > maxAccountVersion) {
159
162
ignoreKeys->append (settings->group ());
163
+ qCInfo (lcAccountManager) << " Ignoring account" << accountId << " because of version" << accountVersion;
160
164
}
161
165
settings->endGroup ();
162
166
}
0 commit comments