Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-libclient
Commits
529ca3c1
Commit
529ca3c1
authored
Oct 23, 2019
by
Kateryna Kostiuk
Browse files
call: handle PEER_BUSY state
Change-Id: I59072ab5cca3274ecc808b2c6e6f00c6c9850eb3
parent
662e7260
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/conversationmodel.cpp
View file @
529ca3c1
...
...
@@ -1662,13 +1662,13 @@ ConversationModelPimpl::slotCallStatusChanged(const std::string& callId, int cod
return
conversation
.
callId
==
callId
;
});
if
(
i
==
conversations
.
end
())
{
// In this case, the user didn't pass through placeCall
// This means that a participant was invited to a call
// or a call was placed via dbus.
// We have to update the mode
l
try
{
auto
call
=
linked
.
owner
.
callModel
->
getCall
(
callId
);
try
{
auto
call
=
linked
.
owner
.
callModel
->
getCall
(
callId
);
if
(
i
==
conversations
.
end
())
{
// In this case, the user didn't pass through placeCall
// This means that a participant was invited to a cal
l
// or a call was placed via dbus.
// We have to update the model
for
(
auto
&
conversation
:
conversations
)
{
if
(
conversation
.
participants
.
front
()
==
call
.
peerUri
)
{
conversation
.
callId
=
callId
;
...
...
@@ -1676,10 +1676,11 @@ ConversationModelPimpl::slotCallStatusChanged(const std::string& callId, int cod
emit
linked
.
conversationUpdated
(
conversation
.
uid
);
}
}
}
catch
(
std
::
out_of_range
&
e
)
{
qDebug
()
<<
"ConversationModelPimpl::slotCallStatusChanged can't get inexistant call"
;
}
else
if
(
call
.
status
==
call
::
Status
::
PEER_BUSY
)
{
emit
behaviorController
.
showLeaveMessageView
(
linked
.
owner
.
id
,
*
i
)
;
}
return
;
}
catch
(
std
::
out_of_range
&
e
)
{
qDebug
()
<<
"ConversationModelPimpl::slotCallStatusChanged can't get inexistant call"
;
}
}
...
...
Write
Preview
Supports
Markdown
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