diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index 85b135a..6ba7255 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -151,7 +151,7 @@ QString ChatModel::getCidByTx(QString tx) { qDebug() << "TXID=" << pair.first << " CID=" << pair.second; } - + if(this->cidMap.count(tx) > 0) { return this->cidMap[tx]; diff --git a/src/controller.cpp b/src/controller.cpp index 0457ccd..b1e3f4f 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -947,7 +947,8 @@ void Controller::refreshTransactions() { if(chatModel->getCidByTx(txid) != QString("0xdeadbeef")) cid = chatModel->getCidByTx(txid); - //cid = ""; + else + cid = ""; } ChatItem item = ChatItem(