set cid for outgoing memos
This commit is contained in:
@@ -880,12 +880,19 @@ void Controller::refreshTransactions() {
|
|||||||
if (!o["memo"].is_null()) {
|
if (!o["memo"].is_null()) {
|
||||||
memo = QString::fromStdString(o["memo"]);
|
memo = QString::fromStdString(o["memo"]);
|
||||||
|
|
||||||
|
QString cid;
|
||||||
|
for(auto &c : AddressBook::getInstance()->getAllAddressLabels())
|
||||||
|
if (ui->ContactZaddr->text().trimmed() == c.getPartnerAddress()) {
|
||||||
|
|
||||||
|
cid = c.getCid();
|
||||||
|
}else {cid = "";}
|
||||||
|
|
||||||
ChatItem item = ChatItem(
|
ChatItem item = ChatItem(
|
||||||
datetime,
|
datetime,
|
||||||
address,
|
address,
|
||||||
QString(""),
|
QString(""),
|
||||||
memo,
|
memo,
|
||||||
"", // we have to set the cid here, its included in our Addressbook for this contact
|
cid, // 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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user