diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-14 23:32:48 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-14 23:32:48 +0100 |
commit | b0d57d01c4b3c9e37fdb4786ccc123f5de866f9c (patch) | |
tree | 83fbd7c69dcf796cfb73ad37f54f6f2d46e34eb3 /src/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | b1a3d09ca6a4be59b57e2f7b1cdc8a245d60a858 (diff) |
renaming conferences over conference details
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 17a2d76f0..99fc961a8 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -1231,4 +1231,19 @@ public class XmppConnectionService extends Service { convChangedListener.onConversationListChanged(); } } + + public void sendConversationSubject(Conversation conversation, + String subject) { + MessagePacket packet = new MessagePacket(); + packet.setType(MessagePacket.TYPE_GROUPCHAT); + packet.setTo(conversation.getContactJid().split("/")[0]); + Element subjectChild = new Element("subject"); + subjectChild.setContent(subject); + packet.addChild(subjectChild); + packet.setFrom(conversation.getAccount().getJid()); + Account account = conversation.getAccount(); + if (account.getStatus() == Account.STATUS_ONLINE) { + account.getXmppConnection().sendMessagePacket(packet); + } + } }
\ No newline at end of file |