mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 05:23:06 +00:00
fix(LinphoneUtils): test correctly empty display name in _getDisplayNameFromString
This commit is contained in:
parent
8bf34d85ca
commit
f315211985
2 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ void Cli::Command::executeUri (const shared_ptr<linphone::Address> &address) con
|
|||
QHash<QString, QString> args;
|
||||
for (const auto &argName : mArgsScheme.keys())
|
||||
args[argName] = ::Utils::coreStringToAppString(address->getHeader(::Utils::appStringToCoreString(argName)));
|
||||
args["sip-address"] = ::Utils::coreStringToAppString(address->asString());
|
||||
args["sip-address"] = ::Utils::coreStringToAppString(address->asStringUriOnly());
|
||||
|
||||
execute(args);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ function _getDisplayNameFromString (str) {
|
|||
return
|
||||
}
|
||||
|
||||
return str.substring(0, end).trim()
|
||||
return str.substring(0, end).trim() || undefined
|
||||
}
|
||||
|
||||
function _getDisplayName (str) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue