1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Do not filter groupchat messages without body

for MessageListeners in MultiUserChat

SMACK-568
This commit is contained in:
Florian Schmaus 2014-05-29 17:47:30 +02:00
parent e9b47d4164
commit c3ae73472e

View file

@ -1950,12 +1950,6 @@ public class MultiUserChat {
new AndFilter(
FromMatchesFilter.create(room),
new MessageTypeFilter(Message.Type.groupchat));
messageFilter = new AndFilter(messageFilter, new PacketFilter() {
public boolean accept(Packet packet) {
Message msg = (Message) packet;
return msg.getBody() != null;
}
});
presenceFilter =
new AndFilter(FromMatchesFilter.create(room), new PacketTypeFilter(Presence.class));