Commit caf627f2 authored by Sébastien Blin's avatar Sébastien Blin

newcallmodel: handle empty URI for conferences infos

Because the daemon can mix calls from multiple accounts into a conference,
the receiver should take care of the detected account for the empty URI

Change-Id: I477dec17056a21b7083b528dc58d08773e44a8ac
parent 511b80ec
......@@ -856,8 +856,16 @@ NewCallModelPimpl::slotOnConferenceInfosUpdated(const QString& confId, const Vec
// if Jami, remove @ring.dht
it->second->participantsInfos = infos;
for (auto& i: it->second->participantsInfos)
for (auto& i: it->second->participantsInfos) {
i["uri"].replace("@ring.dht", "");
if (i["uri"].isEmpty()) {
if (it->second->type == call::Type::CONFERENCE) {
i["uri"] = linked.owner.profileInfo.uri;
} else {
i["uri"] = it->second->peerUri.replace("ring:", "");
}
}
}
emit linked.onParticipantsChanged(confId);
}
......
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