diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-03-26 18:56:02 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-03-26 18:56:02 +0100 |
commit | 185d4d120bed455edb42e1330c5090511ebf1dea (patch) | |
tree | 4ed9bde26aee81ca610412f02a5a98990e63d050 | |
parent | 0c37abf1e9d9d285f601a9f8aa128bf4382685fd (diff) |
fixed error with leaving mucs
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index c2e227fa..8d428e37 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -1083,9 +1083,10 @@ public class XmppConnectionService extends Service { public void leaveMuc(Conversation conversation) { PresencePacket packet = new PresencePacket(); - packet.setAttribute("to", conversation.getContactJid()); + packet.setAttribute("to", conversation.getContactJid().split("/")[0] + "/" + conversation.getMucOptions().getNick()); packet.setAttribute("from", conversation.getAccount().getFullJid()); packet.setAttribute("type", "unavailable"); + Log.d(LOGTAG,"send leaving muc " + packet); conversation.getAccount().getXmppConnection() .sendPresencePacket(packet); conversation.getMucOptions().setOffline(); |