Commit f3152119 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(LinphoneUtils): test correctly empty display name in `_getDisplayNameFromString`

parent 8bf34d85
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment