Commit a6e3ed73 authored by Adrien Béraud's avatar Adrien Béraud

device migration: emit MigrationEnded signal

Change-Id: I8e767772711d2158e911a34a99fb5550961c2e5e
parent 0eed7ec5
......@@ -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());
initRingDevice(readArchive(archive_password));
try {
initRingDevice(readArchive(archive_password));
} catch (...) {
Migration::setState(accountID_, Migration::State::INVALID);
return;
}
Migration::setState(accountID_, Migration::State::SUCCESS);
}
Manager::instance().saveConfig();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment