Skip to content
Snippets Groups Projects
Commit 4042afa1 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Sébastien Blin
Browse files

account: detect invalid account imports

Change-Id: Ie21bc3772c45ea613884edc23c93af5a6460709a
parent 5e5acf68
No related branches found
No related tags found
No related merge requests found
...@@ -405,6 +405,10 @@ NewAccountModelPimpl::updateAccounts() ...@@ -405,6 +405,10 @@ NewAccountModelPimpl::updateAccounts()
void void
NewAccountModelPimpl::slotAccountStatusChanged(const std::string& accountID, const api::account::Status status) NewAccountModelPimpl::slotAccountStatusChanged(const std::string& accountID, const api::account::Status status)
{ {
if (status == api::account::Status::INVALID) {
emit linked.invalidAccountDetected(accountID);
return;
}
auto it = accounts.find(accountID); auto it = accounts.find(accountID);
// If account is not in the map yet, don't add it, it is updateAccounts's job // If account is not in the map yet, don't add it, it is updateAccounts's job
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment