mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
temp work around - restore use of vcard FullName (use by sdk to store ldap results)
This commit is contained in:
parent
9fc3caa63c
commit
97c2c1e214
2 changed files with 5 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ FriendCore::FriendCore(const std::shared_ptr<linphone::Friend> &contact) : QObje
|
|||
mJob = Utils::coreStringToAppString(vcard->getJobTitle());
|
||||
mGivenName = Utils::coreStringToAppString(vcard->getGivenName());
|
||||
mFamilyName = Utils::coreStringToAppString(vcard->getFamilyName());
|
||||
mFullName = Utils::coreStringToAppString(vcard->getFullName());
|
||||
mVCardString = Utils::coreStringToAppString(vcard->asVcard4String());
|
||||
}
|
||||
auto addresses = contact->getAddresses();
|
||||
|
|
@ -112,6 +113,7 @@ FriendCore::FriendCore(const FriendCore &friendCore) {
|
|||
mDefaultAddress = friendCore.mDefaultAddress;
|
||||
mGivenName = friendCore.mGivenName;
|
||||
mFamilyName = friendCore.mFamilyName;
|
||||
mFullName = friendCore.mFullName;
|
||||
mOrganization = friendCore.mOrganization;
|
||||
mJob = friendCore.mJob;
|
||||
mPictureUri = friendCore.mPictureUri;
|
||||
|
|
@ -241,7 +243,8 @@ void FriendCore::reset(const FriendCore &contact) {
|
|||
}
|
||||
|
||||
QString FriendCore::getDisplayName() const {
|
||||
return mGivenName + " " + mFamilyName;
|
||||
if (mFullName.isEmpty()) return mGivenName + " " + mFamilyName;
|
||||
else return mFullName;
|
||||
}
|
||||
|
||||
QString FriendCore::getGivenName() const {
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@ protected:
|
|||
QDateTime mPresenceTimestamp;
|
||||
QString mGivenName;
|
||||
QString mFamilyName;
|
||||
QString mFullName;
|
||||
QString mOrganization;
|
||||
QString mJob;
|
||||
bool mStarred;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue