aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/XmppConnectionService.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-21 16:04:53 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-21 16:04:53 +0200
commitf9ed76f5e130f744e118ac752728949688a206a9 (patch)
tree25f25b1f82026cf51ab46d56d2af6bb79dd7f6e9 /src/eu/siacs/conversations/services/XmppConnectionService.java
parent87aff4c6d8ba516bf847b69bab25e5601a3bcd76 (diff)
switched to direct invites. fixes #284
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index 0ac1adf7..ad522fd9 100644
--- a/src/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/eu/siacs/conversations/services/XmppConnectionService.java
@@ -1223,19 +1223,9 @@ public class XmppConnectionService extends Service {
}).start();
}
- public void inviteToConference(Conversation conversation, String contactJid) {
- Account account = conversation.getAccount();
- MessagePacket packet = new MessagePacket();
- packet.setTo(conversation.getContactJid().split("/")[0]);
- packet.setFrom(account.getFullJid());
- Element x = new Element("x");
- x.setAttribute("xmlns", "http://jabber.org/protocol/muc#user");
- Element invite = new Element("invite");
- invite.setAttribute("to", contactJid);
- x.addChild(invite);
- packet.addChild(x);
- sendMessagePacket(account,packet);
- Log.d(LOGTAG,packet.toString());
+ public void invite(Conversation conversation, String contact) {
+ MessagePacket packet = mMessageGenerator.invite(conversation, contact);
+ sendMessagePacket(conversation.getAccount(),packet);
}
public boolean markMessage(Account account, String recipient, String uuid,