Commit b5a01af9 authored by David Smith's avatar David Smith Committed by david

Invite fixes for http://jira.jiveland.com/browse/CS-4034, reviewed by Armando.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10225 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1d025c51
...@@ -51,7 +51,7 @@ public class ClearspaceMUCEventDelegate extends MUCEventDelegate { ...@@ -51,7 +51,7 @@ public class ClearspaceMUCEventDelegate extends MUCEventDelegate {
IQ query = new IQ(); IQ query = new IQ();
query.setFrom(csMucDomain); query.setFrom(csMucDomain);
Element cmd = query.setChildElement("room-invite", "http://jivesoftware.com/clearspace"); Element cmd = query.setChildElement("invite-check", "http://jivesoftware.com/clearspace");
Element inviterjidElement = cmd.addElement("inviter"); Element inviterjidElement = cmd.addElement("inviter");
inviterjidElement.setText(inviter.toBareJID()); inviterjidElement.setText(inviter.toBareJID());
Element inviteejidElement = cmd.addElement("invitee"); Element inviteejidElement = cmd.addElement("invitee");
......
...@@ -1637,7 +1637,7 @@ public class LocalMUCRoom implements MUCRoom { ...@@ -1637,7 +1637,7 @@ public class LocalMUCRoom implements MUCRoom {
message.setTo(to); message.setTo(to);
if (((MultiUserChatServiceImpl)mucService).getMUCDelegate() != null) { if (((MultiUserChatServiceImpl)mucService).getMUCDelegate() != null) {
switch(((MultiUserChatServiceImpl)mucService).getMUCDelegate().sendingInvitation(this, to, role.getRoleAddress(), reason)) { switch(((MultiUserChatServiceImpl)mucService).getMUCDelegate().sendingInvitation(this, to, senderRole.getUserAddress(), reason)) {
case HANDLED_BY_DELEGATE: case HANDLED_BY_DELEGATE:
//if the delegate is taking care of it, there's nothing for us to do //if the delegate is taking care of it, there's nothing for us to do
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment