do not nofiy UI if UI triggered retract

This commit is contained in:
Daniel Gultsch 2024-01-20 11:41:37 +01:00
parent 5158fc4530
commit bff1ac5ebc
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -659,12 +659,17 @@ public class JingleConnectionManager extends AbstractConnectionManager {
}
}
if (matchingProposal != null) {
retractSessionProposal(matchingProposal);
retractSessionProposal(matchingProposal, false);
}
}
}
private void retractSessionProposal(final RtpSessionProposal rtpSessionProposal) {
retractSessionProposal(rtpSessionProposal, true);
}
private void retractSessionProposal(
final RtpSessionProposal rtpSessionProposal, final boolean refresh) {
final Account account = rtpSessionProposal.account;
Log.d(
Config.LOGTAG,
@ -673,11 +678,13 @@ public class JingleConnectionManager extends AbstractConnectionManager {
+ rtpSessionProposal.with);
this.rtpSessionProposals.remove(rtpSessionProposal);
rtpSessionProposal.callIntegration.retracted();
mXmppConnectionService.notifyJingleRtpConnectionUpdate(
account,
rtpSessionProposal.with,
rtpSessionProposal.sessionId,
RtpEndUserState.RETRACTED);
if (refresh) {
mXmppConnectionService.notifyJingleRtpConnectionUpdate(
account,
rtpSessionProposal.with,
rtpSessionProposal.sessionId,
RtpEndUserState.RETRACTED);
}
final MessagePacket messagePacket =
mXmppConnectionService.getMessageGenerator().sessionRetract(rtpSessionProposal);
writeLogMissedOutgoing(