diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-10-10 22:11:00 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-10-10 22:11:00 +0200 |
commit | 2dcf3ae1bf86cbb526bc83c9d642157900a4f8f5 (patch) | |
tree | 668fdb952b42f62cf52ba894d8658ad25b7f0fcf /src/main/java/de/pixart/messenger | |
parent | 563449cb262e077e92396481c0884407e20a5129 (diff) |
add password to direct muc invite
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/generator/MessageGenerator.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/generator/MessageGenerator.java b/src/main/java/de/pixart/messenger/generator/MessageGenerator.java index bf64f5bfd..ce0a81a72 100644 --- a/src/main/java/de/pixart/messenger/generator/MessageGenerator.java +++ b/src/main/java/de/pixart/messenger/generator/MessageGenerator.java @@ -183,6 +183,10 @@ public class MessageGenerator extends AbstractGenerator { packet.setFrom(conversation.getAccount().getJid()); Element x = packet.addChild("x", "jabber:x:conference"); x.setAttribute("jid", conversation.getJid().toBareJid().toString()); + String password = conversation.getMucOptions().getPassword(); + if (password != null) { + x.setAttribute("password",password); + } return packet; } |