update// address improvement

This commit is contained in:
Strider
2020-05-28 20:45:30 +02:00
parent 5e9c7fa5ee
commit 4413d3de62
4 changed files with 56 additions and 40 deletions

View File

@@ -417,12 +417,7 @@ void AddressBook::readFromStorage()
allLabels = FileSystem::getInstance()->readContacts(AddressBook::writeableFile());
// test to see if the contact items in datastore are correctly dumped to json
for(ContactItem item: allLabels)
{
DataStore::getContactDataStore()->setData(item.getCid(), item);
}
DataStore::getContactDataStore()->dump();
AddressBook::writeToStorage();
}
void AddressBook::writeToStorage()