update// reformated datastore and changed storage chatmodel to store with datastore

This commit is contained in:
Strider
2020-05-08 21:16:40 +02:00
parent d0562d2c65
commit 30ddc479ba
11 changed files with 104 additions and 88 deletions

View File

@@ -887,7 +887,8 @@ void Controller::refreshTransactions() {
txid,
true // is an outgoing message
);
chatModel->addMessage(item);
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
//chatModel->addMessage(item);
}
@@ -992,8 +993,8 @@ void Controller::refreshTransactions() {
txid,
false
);
chatModel->addMessage(item);
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
//chatModel->addMessage(item);
}
}