Skip to content
Snippets Groups Projects
Commit 463c22bc authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

Call: do not use the contact name as the peerName

The name of the contact is not the same as the peerName which comes
from the display name. The display name comes directly fromt the
peer (transfered via SIP info) where as the contact is set by the user.

If the contact is deleted or updated, we do not want their old name
to remain in the call history.

Change-Id: Ibae3967291047d1f53c75ef1a043379f2f293fc9
Tuleap: #307
parent 0a105148
No related branches found
No related tags found
No related merge requests found
......@@ -1783,11 +1783,6 @@ void CallPrivate::call()
}
setObjectName("Call:"+m_DringId);
if (PersonModel::instance().hasCollections()) {
if (auto contact = peerCM->contact())
m_PeerName = contact->formattedName();
}
setStartTimeStamp();
CallModel::instance().registerCall(q_ptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment