1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

Use IQ.isResponseIQ() in AbstractXMPPConnection

This commit is contained in:
Florian Schmaus 2019-04-08 23:04:46 +02:00
parent 87e0ac9ba1
commit d1f2631771

View file

@ -1353,7 +1353,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
return; return;
} }
assert (response.getType() == IQ.Type.result || response.getType() == IQ.Type.error); assert response.isResponseIQ();
response.setTo(iqRequest.getFrom()); response.setTo(iqRequest.getFrom());
response.setStanzaId(iqRequest.getStanzaId()); response.setStanzaId(iqRequest.getStanzaId());