mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 22:22:22 +01:00
fixed error with leaving mucs
This commit is contained in:
parent
0c37abf1e9
commit
185d4d120b
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue