Commit a64b567d authored by Christian Schudt's avatar Christian Schudt

Merge pull request #73 from Redor/openfire

Fixed: org.xmpp.packet.JID and JID String was mixed up.
parents d7eade45 6d312043
......@@ -281,7 +281,7 @@ public class ClearspaceMUCTranscriptManager implements MUCEventListener {
MultiUserChatService chatService =
XMPPServer.getInstance().getMultiUserChatManager().getMultiUserChatService(roomJID);
MUCRoom room = chatService.getChatRoom(roomJID.getNode());
return room != null && room.getOwners().contains(user.toBareJID());
return room != null && room.getOwners().contains(user);
}
private boolean isClearspaceRoom(JID roomJID) {
......
......@@ -216,7 +216,7 @@ public class PEPServiceManager {
}
public boolean hasCachedService(JID owner) {
return pepServices.get(owner) != null;
return pepServices.get(owner.toBareJID()) != null;
}
// mimics Shutdown, without killing the timer.
......
......@@ -54,7 +54,7 @@ public class PresenceAccess extends AccessModel {
XMPPServer server = XMPPServer.getInstance();
for (JID nodeOwner : node.getOwners()) {
// Give access to the owner of the roster :)
if (nodeOwner.equals(owner.toBareJID())) {
if (nodeOwner.equals(owner)) {
return true;
}
// Check that the node owner is a local user
......
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