read the cid from headermemo into qstring
This commit is contained in:
@@ -885,7 +885,7 @@ void Controller::refreshTransactions() {
|
|||||||
address,
|
address,
|
||||||
QString(""),
|
QString(""),
|
||||||
memo,
|
memo,
|
||||||
"", // we have to set the cid here,
|
"", // we have to set the cid here, its included in our Addressbook for this contact
|
||||||
txid
|
txid
|
||||||
// true // is an outgoing message
|
// true // is an outgoing message
|
||||||
);
|
);
|
||||||
@@ -931,14 +931,23 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
txdata.push_back(tx);
|
txdata.push_back(tx);
|
||||||
|
|
||||||
|
QString cid;
|
||||||
|
if (memo.startsWith("{")) {
|
||||||
|
|
||||||
|
cid = memo.mid(14,36);
|
||||||
|
|
||||||
|
}else{ cid = "";}
|
||||||
|
|
||||||
ChatItem item = ChatItem(
|
ChatItem item = ChatItem(
|
||||||
datetime,
|
datetime,
|
||||||
address,
|
address,
|
||||||
QString(""),
|
QString(""),
|
||||||
memo,
|
memo,
|
||||||
"", // we have to set the cid here
|
cid, // we have to set the cid here, its included in the headermemo
|
||||||
txid
|
txid
|
||||||
);
|
);
|
||||||
|
qDebug()<<cid;
|
||||||
|
qDebug()<<txid;
|
||||||
chatModel->addMessage(item);
|
chatModel->addMessage(item);
|
||||||
|
|
||||||
items.push_back(TransactionItemDetail{
|
items.push_back(TransactionItemDetail{
|
||||||
|
|||||||
Reference in New Issue
Block a user