Merge pull request #505 from betheg/fix_invite

fixed muc invite with <body/>.
This commit is contained in:
Daniel Gultsch 2014-09-30 11:53:07 +02:00
commit 0733a94127

View File

@ -404,7 +404,9 @@ public class MessageParser extends AbstractParser implements
if (message != null) {
message.markUnread();
}
} else if (packet.hasChild("body")) {
} else if (packet.hasChild("body")
&& !(packet.hasChild("x",
"http://jabber.org/protocol/muc#user"))) {
message = this.parseChat(packet, account);
if (message != null) {
message.markUnread();