Commit bfbdde1a authored by Sébastien Blin's avatar Sébastien Blin
Browse files

participantslayer: perform a lookup if no bestName

In a conference, lookup participants that are not in our contact
at least to get their username if one is found.

Change-Id: I39e51119248e1942deaf99af4c25a80843643de1
parent 9535c88b
......@@ -43,12 +43,29 @@ Item {
uri: uri_
isMe: isLocal_
participantIsModerator: isModerator_
bestName: bestName_
bestName: {
if (bestName_ === uri_)
NameDirectory.lookupAddress("", uri_)
return bestName_
}
videoMuted: videoMuted_
participantIsActive: active_
isLocalMuted: audioLocalMuted_
participantIsModeratorMuted: audioModeratorMuted_
participantHandIsRaised: isHandRaised_
Connections {
id: registeredNameFoundConnection
target: NameDirectory
enabled: bestName_ === uri_
function onRegisteredNameFound(status, address, name) {
if (address === uri_ && status == NameDirectory.LookupStatus.SUCCESS) {
bestName_ = name
}
}
}
}
}
......
Supports Markdown
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