Skip to content
Snippets Groups Projects
Commit eb0405a2 authored by Stepan Salenikovich's avatar Stepan Salenikovich Committed by gerrit2
Browse files

history: prevent Unknown peer name

Issue: #80201
Change-Id: I199688da1ccd720097b97e8ef8f6eaa7026bbf6e
parent 8e43c420
No related branches found
No related tags found
No related merge requests found
...@@ -221,9 +221,7 @@ bool LocalHistoryCollection::load() ...@@ -221,9 +221,7 @@ bool LocalHistoryCollection::load()
//The item is complete //The item is complete
if ((line.isEmpty() || !line.size()) && hc.size()) { if ((line.isEmpty() || !line.size()) && hc.size()) {
Call* pastCall = Call::buildHistoryCall(hc); Call* pastCall = Call::buildHistoryCall(hc);
if (pastCall->peerName().isEmpty()) {
pastCall->setPeerName(QObject::tr("Unknown"));
}
pastCall->setCollection(this); pastCall->setCollection(this);
editor<Call>()->addExisting(pastCall); editor<Call>()->addExisting(pastCall);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment