add position of txs
This commit is contained in:
@@ -856,8 +856,7 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
|
|
||||||
address = QString::fromStdString(o["address"]);
|
address = QString::fromStdString(o["address"]);
|
||||||
|
|
||||||
// qDebug()<< "Position :" << position;
|
|
||||||
// Sent items are -ve
|
// Sent items are -ve
|
||||||
CAmount amount = CAmount::fromqint64(-1* o["value"].get<json::number_unsigned_t>());
|
CAmount amount = CAmount::fromqint64(-1* o["value"].get<json::number_unsigned_t>());
|
||||||
|
|
||||||
@@ -885,9 +884,9 @@ void Controller::refreshTransactions() {
|
|||||||
memo,
|
memo,
|
||||||
QString(""),
|
QString(""),
|
||||||
QString(""),
|
QString(""),
|
||||||
cid, // we have to set the cid here, its included in our Addressbook for this contact
|
cid,
|
||||||
txid,
|
txid,
|
||||||
true // is an outgoing message
|
true
|
||||||
);
|
);
|
||||||
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
|
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
|
||||||
//chatModel->addMessage(item);
|
//chatModel->addMessage(item);
|
||||||
@@ -910,7 +909,6 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
txdata.push_back(TransactionItem{
|
txdata.push_back(TransactionItem{
|
||||||
"send", datetime, address, txid,confirmations, items
|
"send", datetime, address, txid,confirmations, items
|
||||||
});
|
});
|
||||||
@@ -940,6 +938,7 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
QString type;
|
QString type;
|
||||||
QString cid;
|
QString cid;
|
||||||
|
int position;
|
||||||
QString requestZaddr1;
|
QString requestZaddr1;
|
||||||
QString requestZaddr;
|
QString requestZaddr;
|
||||||
|
|
||||||
@@ -984,6 +983,7 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
}else{ contact = "";}
|
}else{ contact = "";}
|
||||||
|
|
||||||
|
position = it["position"].get<json::number_integer_t>();
|
||||||
ChatItem item = ChatItem(
|
ChatItem item = ChatItem(
|
||||||
datetime,
|
datetime,
|
||||||
address,
|
address,
|
||||||
@@ -991,12 +991,13 @@ void Controller::refreshTransactions() {
|
|||||||
memo,
|
memo,
|
||||||
requestZaddr,
|
requestZaddr,
|
||||||
type,
|
type,
|
||||||
cid, // we have to set the cid here, its included in the headermemo
|
cid,
|
||||||
txid,
|
txid,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
|
DataStore::getChatDataStore()->setData(chatModel->generateChatItemID(item), item);
|
||||||
//chatModel->addMessage(item);
|
|
||||||
|
qDebug() << "Position der Message : " << position;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user