diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-01-24 00:22:51 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-01-24 00:22:51 +0100 |
commit | b9af38464e971e21a78f5c99d20d37fea73cc67e (patch) | |
tree | e648bd533b10c8d6940ce3423783052f73a8e121 /src/main/java/eu/siacs/conversations/generator | |
parent | ed3d76bcf61080589dc1da65a4eec33bb5a0e44b (diff) |
fixed mam to work with muc
Diffstat (limited to 'src/main/java/eu/siacs/conversations/generator')
-rw-r--r-- | src/main/java/eu/siacs/conversations/generator/IqGenerator.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java index d0965821..290e0d60 100644 --- a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java +++ b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java @@ -107,7 +107,9 @@ public class IqGenerator extends AbstractGenerator { query.setAttribute("queryid",mam.getQueryId()); final Data data = new Data(); data.setFormType("urn:xmpp:mam:0"); - if (mam.getWith()!=null) { + if (mam.muc()) { + packet.setTo(mam.getWith()); + } else if (mam.getWith()!=null) { data.put("with", mam.getWith().toString()); } data.put("start",getTimestamp(mam.getStart())); |