do not nofiy UI if UI triggered retract
This commit is contained in:
parent
5158fc4530
commit
bff1ac5ebc
|
@ -659,12 +659,17 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (matchingProposal != null) {
|
if (matchingProposal != null) {
|
||||||
retractSessionProposal(matchingProposal);
|
retractSessionProposal(matchingProposal, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void retractSessionProposal(final RtpSessionProposal rtpSessionProposal) {
|
private void retractSessionProposal(final RtpSessionProposal rtpSessionProposal) {
|
||||||
|
retractSessionProposal(rtpSessionProposal, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void retractSessionProposal(
|
||||||
|
final RtpSessionProposal rtpSessionProposal, final boolean refresh) {
|
||||||
final Account account = rtpSessionProposal.account;
|
final Account account = rtpSessionProposal.account;
|
||||||
Log.d(
|
Log.d(
|
||||||
Config.LOGTAG,
|
Config.LOGTAG,
|
||||||
|
@ -673,11 +678,13 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
||||||
+ rtpSessionProposal.with);
|
+ rtpSessionProposal.with);
|
||||||
this.rtpSessionProposals.remove(rtpSessionProposal);
|
this.rtpSessionProposals.remove(rtpSessionProposal);
|
||||||
rtpSessionProposal.callIntegration.retracted();
|
rtpSessionProposal.callIntegration.retracted();
|
||||||
mXmppConnectionService.notifyJingleRtpConnectionUpdate(
|
if (refresh) {
|
||||||
account,
|
mXmppConnectionService.notifyJingleRtpConnectionUpdate(
|
||||||
rtpSessionProposal.with,
|
account,
|
||||||
rtpSessionProposal.sessionId,
|
rtpSessionProposal.with,
|
||||||
RtpEndUserState.RETRACTED);
|
rtpSessionProposal.sessionId,
|
||||||
|
RtpEndUserState.RETRACTED);
|
||||||
|
}
|
||||||
final MessagePacket messagePacket =
|
final MessagePacket messagePacket =
|
||||||
mXmppConnectionService.getMessageGenerator().sessionRetract(rtpSessionProposal);
|
mXmppConnectionService.getMessageGenerator().sessionRetract(rtpSessionProposal);
|
||||||
writeLogMissedOutgoing(
|
writeLogMissedOutgoing(
|
||||||
|
|
Loading…
Reference in a new issue