Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
7d0384ac
Commit
7d0384ac
authored
May 09, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/modules/Linphone/Calls/Calls): handle correctly received call
parent
3f026201
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Calls.js
linphone-desktop/ui/modules/Linphone/Calls/Calls.js
+11
-6
No files found.
linphone-desktop/ui/modules/Linphone/Calls/Calls.js
View file @
7d0384ac
...
...
@@ -114,27 +114,32 @@ function handleCountChanged (count) {
calls
.
_selectedCall
=
model
.
data
(
model
.
index
(
index
,
0
))
}
function
resetSelectedCall
()
{
calls
.
currentIndex
=
-
1
calls
.
_selectedCall
=
null
}
function
handleRowsAboutToBeRemoved
(
_
,
first
,
last
)
{
var
index
=
calls
.
currentIndex
if
(
index
>=
first
&&
index
<=
last
)
{
calls
.
currentIndex
=
-
1
calls
.
_selectedCall
=
null
resetSelectedCall
()
}
}
function
handleRowsInserted
(
_
,
first
,
last
)
{
// The last inserted outgoing element become the selected call.
var
model
=
calls
.
model
for
(
var
index
=
last
;
index
>=
first
;
index
--
)
{
var
call
=
model
.
data
(
model
.
index
(
index
,
0
))
if
(
call
.
isOutgoing
)
{
calls
.
currentIndex
=
-
1
calls
.
_selectedCall
=
null
resetSelectedCall
()
return
}
}
if
(
index
===
0
&&
model
.
rowsCount
()
===
1
)
{
resetSelectedCall
()
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment