mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 17:52:06 +01:00
Do not filter groupchat messages without body
for MessageListeners in MultiUserChat SMACK-568
This commit is contained in:
parent
e9b47d4164
commit
c3ae73472e
1 changed files with 0 additions and 6 deletions
|
@ -1950,12 +1950,6 @@ public class MultiUserChat {
|
||||||
new AndFilter(
|
new AndFilter(
|
||||||
FromMatchesFilter.create(room),
|
FromMatchesFilter.create(room),
|
||||||
new MessageTypeFilter(Message.Type.groupchat));
|
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 =
|
presenceFilter =
|
||||||
new AndFilter(FromMatchesFilter.create(room), new PacketTypeFilter(Presence.class));
|
new AndFilter(FromMatchesFilter.create(room), new PacketTypeFilter(Presence.class));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue