create a cid in addressbook but make it editable for the beginning

This commit is contained in:
DenioD
2020-05-01 21:40:45 +02:00
parent a3e762a4ad
commit f515be1aa8
4 changed files with 40 additions and 22 deletions

View File

@@ -129,8 +129,9 @@ void ChatModel::renderChatBox(Ui::MainWindow* ui, QListWidget *view)
if ((ui->MyZaddr->text().trimmed() == c.second.getAddress()) && (c.second.getMemo().startsWith("{") == false) && (c.second.getMemo().isEmpty() == false)){
for(auto &p : AddressBook::getInstance()->getAllAddressLabels()){
if (p.getCid() == c.second.getCid()){
line += QString("<") + "verified" + QString("> :\n");}
if ((p.getCid() == c.second.getCid())){
line+= QString("[") + "Verified Message" + QString("]"); ////Todo: Render a green checkmark instead of QString
}
}
line += QString("[") + myDateTime.toString("dd.MM.yyyy hh:mm:ss ") + QString("] ");
line += QString("<") + QString("incoming") + QString("> :\n");
@@ -152,7 +153,7 @@ QString ChatModel::getCidByTx(QString tx)
{
for(auto& pair : this->cidMap)
{
qDebug() << "TXID=" << pair.first << " CID=" << pair.second;
// qDebug() << "TXID=" << pair.first << " CID=" << pair.second;
}
if(this->cidMap.count(tx) > 0)