Skip to content
Snippets Groups Projects
Commit a6e3ed73 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

device migration: emit MigrationEnded signal

Change-Id: I8e767772711d2158e911a34a99fb5550961c2e5e
parent 0eed7ec5
Branches
Tags
No related merge requests found
......@@ -1470,7 +1470,13 @@ RingAccount::loadAccount(const std::string& archive_password, const std::string&
migrateAccount(archive_password);
} else {
RING_WARN("[Account %s] archive present but no valid receipt: creating new device", getAccountID().c_str());
try {
initRingDevice(readArchive(archive_password));
} catch (...) {
Migration::setState(accountID_, Migration::State::INVALID);
return;
}
Migration::setState(accountID_, Migration::State::SUCCESS);
}
Manager::instance().saveConfig();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment