accept and reject are both things that can come from other resources

Stephen Paul Weber created

So if someone else sends one to the bare JID, we should deliver it to any
connection that matches.

Change summary

src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java 🔗

@@ -251,7 +251,7 @@ public class JingleConnectionManager extends AbstractConnectionManager {
         if (sessionId == null) {
             return;
         }
-        if ("accept".equals(message.getName())) {
+        if ("accept".equals(message.getName()) || "reject".equals(message.getName())) {
             for (AbstractJingleConnection connection : connections.values()) {
                 if (connection instanceof JingleRtpConnection) {
                     final JingleRtpConnection rtpConnection = (JingleRtpConnection) connection;