mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Conditionially set the IQ type in ThreadedDummyConnection
and do not set 'from'.
This commit is contained in:
parent
f48f0cab5b
commit
48b5dc5fe7
2 changed files with 10 additions and 3 deletions
|
@ -57,9 +57,10 @@ public class ThreadedDummyConnection extends DummyConnection {
|
|||
replyQ.add(replyPacket);
|
||||
}
|
||||
replyPacket.setStanzaId(packet.getStanzaId());
|
||||
replyPacket.setFrom(packet.getTo());
|
||||
replyPacket.setTo(packet.getFrom());
|
||||
replyPacket.setType(Type.result);
|
||||
if (replyPacket.getType() == null) {
|
||||
replyPacket.setType(Type.result);
|
||||
}
|
||||
|
||||
new ProcessQueue(replyQ).start();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue