feat(ui/views/App/Calls/ConferenceManager): in progress

This commit is contained in:
Ronan Abhamon 2017-05-29 13:57:35 +02:00
parent b0a1cd5058
commit 9a1ff5832a
2 changed files with 9 additions and 4 deletions

View file

@ -144,7 +144,9 @@ function handleCountChanged (count) {
// -----------------------------------------------------------------------------
function handleCallRunning (call) {
setIndexWithCall(call)
if (!call.isInConference) {
setIndexWithCall(call)
}
}
function handleRowsAboutToBeRemoved (_, first, last) {
@ -161,7 +163,7 @@ function handleRowsInserted (_, first, last) {
for (var index = last; index >= first; index--) {
var call = model.data(model.index(index, 0))
if (call.isOutgoing) {
if (call.isOutgoing && !call.isInConference) {
updateSelectedCall(call)
return
}
@ -169,6 +171,9 @@ function handleRowsInserted (_, first, last) {
// First received call.
if (first === 0 && model.rowCount() === 1) {
updateSelectedCall(model.data(model.index(0, 0)))
var call = model.data(model.index(0, 0))
if (!call.isInConference) {
updateSelectedCall(model.data(model.index(0, 0)))
}
}
}

View file

@ -49,7 +49,7 @@ function getContent () {
var status = call.status
if (status == null) {
return null
return calls.conferenceModel.count > 0 ? conference : null
}
var CallModel = Linphone.CallModel