Commit 27bd8962 authored by Benjamin REIS's avatar Benjamin REIS

add display name management to resource list parsing

parent 416762da
......@@ -66,10 +66,9 @@ list<shared_ptr<Address>> LocalConference::parseResourceLists(string xmlBody) {
for(const auto &l : rl->getList()) {
for(const auto &entry : l.getEntry()) {
shared_ptr<Address> addr = make_shared<Address>(Address(entry.getUri()));
// TODO : set display name when possible
/*if(!entry.getDisplayName()->present()) {
addr->setDisplayName(entry.getDisplayName()->get());
}*/
if(!entry.getDisplayName().present()) {
addr->setDisplayName(entry.getDisplayName().get());
}
addresses.push_back(addr);
}
}
......
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