Commit 37c8e25f authored by csh's avatar csh

OF-760 MUC service does not include self-presence status code 110

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13998 b35dd754-fafc-0310-a699-88a17e54d16e
parent 973ebe7b
......@@ -649,6 +649,10 @@ public class LocalMUCRoom implements MUCRoom {
Element frag = joinPresence.getChildElement("x", "http://jabber.org/protocol/muc#user");
frag.addElement("status").addAttribute("code", "100");
}
if (joinPresence.getFrom().equals(joinPresence.getTo())) {
Element frag = joinPresence.getChildElement("x", "http://jabber.org/protocol/muc#user");
frag.addElement("status").addAttribute("code", "110");
}
if (isRoomNew) {
Element frag = joinPresence.getChildElement("x", "http://jabber.org/protocol/muc#user");
frag.addElement("status").addAttribute("code", "201");
......
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