From 463c22bc93602737c5c066ccf5fb4d7290f23471 Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Fri, 29 Jan 2016 18:41:32 -0500 Subject: [PATCH] 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 --- src/call.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/call.cpp b/src/call.cpp index 13df1f1a..2854573a 100644 --- a/src/call.cpp +++ b/src/call.cpp @@ -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); -- GitLab