fix a problem with two chatrender functions due to refractor

This commit is contained in:
DenioD
2020-05-14 12:50:05 +02:00
parent 7e491b3a25
commit b9526c1f35
4 changed files with 13 additions and 83 deletions

View File

@@ -877,7 +877,7 @@ void Controller::refreshTransactions() {
if (address == c.getPartnerAddress()){
contact = c.getName();
}else{ contact = "";}
}
ChatItem item = ChatItem(
datetime,
@@ -890,14 +890,17 @@ void Controller::refreshTransactions() {
txid,
true
);
qDebug()<<"Kontaktname : " <<contact;
qDebug()<<"Memo : " <<memo;
DataStore::getChatDataStore()->setData(ChatIDGenerator::getInstance()->generateID(item), item);
}
// }
items.push_back(TransactionItemDetail{address, amount, memo});
total_amount = total_amount + amount;
}
{
QList<QString> addresses;
@@ -986,6 +989,7 @@ void Controller::refreshTransactions() {
}else{ contact = "";}
}
// position = it["position"].get<json::number_integer_t>();
ChatItem item = ChatItem(
@@ -999,9 +1003,10 @@ void Controller::refreshTransactions() {
txid,
false
);
qDebug()<<"Kontaktname : " <<contact;
qDebug()<<"Memo : " <<memo;
DataStore::getChatDataStore()->setData(ChatIDGenerator::getInstance()->generateID(item), item);
}
// }
}
}