update// updated contactmodel and added new generatorclass

This commit is contained in:
Strider
2020-05-09 21:19:59 +02:00
parent 7dfb9a1929
commit abdad2b09d
4 changed files with 13 additions and 16 deletions

View File

@@ -826,7 +826,7 @@ void Controller::refreshBalances()
});
}
void Controller::refreshTransactions() {
void Controller::refreshTransactions() {
if (!zrpc->haveConnection())
return noConnection();
@@ -847,7 +847,7 @@ void Controller::refreshTransactions() {
auto txid = QString::fromStdString(it["txid"]);
auto datetime = it["datetime"].get<json::number_integer_t>();
// First, check if there's outgoing metadata
if (!it["outgoing_metadata"].is_null()) {
@@ -889,7 +889,8 @@ void Controller::refreshTransactions() {
txid,
true
);
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
//DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
DataStore::getChatDataStore()->setData(ChatIDGenerator::getInstance()->generateID(item), item);
}
@@ -996,8 +997,8 @@ void Controller::refreshTransactions() {
txid,
false
);
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
//DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
DataStore::getChatDataStore()->setData(ChatIDGenerator::getInstance()->generateID(item), item);
qDebug() << "Position der Message : " << position;
}
}