Commit e17cf999 authored by Grigory Fedorov's avatar Grigory Fedorov

RoomChat: room invitation message do not shown in MUC.

parent bbb36bd8
......@@ -185,6 +185,12 @@ public class RoomChat extends AbstractChat {
if (!super.onPacket(bareAddress, packet)) {
return false;
}
MUCUser mucUserExtension = MUC.getMUCUserExtension(packet);
if (mucUserExtension != null && mucUserExtension.getInvite() != null) {
return false;
}
final String from = packet.getFrom();
final String resource = XmppStringUtils.parseResource(from);
if (packet instanceof Message) {
......
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