From f92ea5c70b292885b164ffb48829ca4f10cd8b52 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 21 Feb 2021 13:37:08 +0100 Subject: [PATCH] resend only if server has stream mgmt --- .../conversations/xmpp/jingle/JingleConnectionManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java index 0525b4a20..6b94f1f4d 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java @@ -40,6 +40,7 @@ import eu.siacs.conversations.xml.Element; import eu.siacs.conversations.xml.Namespace; import eu.siacs.conversations.xmpp.Jid; import eu.siacs.conversations.xmpp.OnIqPacketReceived; +import eu.siacs.conversations.xmpp.XmppConnection; import eu.siacs.conversations.xmpp.jingle.stanzas.Content; import eu.siacs.conversations.xmpp.jingle.stanzas.FileTransferDescription; import eu.siacs.conversations.xmpp.jingle.stanzas.GenericDescription; @@ -661,7 +662,10 @@ public class JingleConnectionManager extends AbstractConnectionManager { for (final AbstractJingleConnection connection : this.connections.values()) { connection.notifyRebound(); } - resendSessionProposals(account); + final XmppConnection xmppConnection = account.getXmppConnection(); + if (xmppConnection != null && xmppConnection.getFeatures().sm()) { + resendSessionProposals(account); + } } public WeakReference findJingleRtpConnection(Account account, Jid with, String sessionId) {