mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Remove NORMAL_OR_CHAT_OR_GROUPCHAT MessageTypeFilter
Type 'groupchat' message stanzas are not like others, they usually require special handling. Hence such a filter is usually an indication that multiple concepts are intermixed.
This commit is contained in:
parent
830f3661e7
commit
45736e8ead
2 changed files with 2 additions and 3 deletions
|
@ -74,14 +74,14 @@ public final class ChatMarkersManager extends Manager {
|
|||
|
||||
// @FORMATTER:OFF
|
||||
private static final StanzaFilter INCOMING_MESSAGE_FILTER = new AndFilter(
|
||||
MessageTypeFilter.NORMAL_OR_CHAT_OR_GROUPCHAT,
|
||||
MessageTypeFilter.NORMAL_OR_CHAT,
|
||||
new StanzaExtensionFilter(ChatMarkersElements.NAMESPACE),
|
||||
PossibleFromTypeFilter.ENTITY_BARE_JID,
|
||||
EligibleForChatMarker.INSTANCE
|
||||
);
|
||||
|
||||
private static final StanzaFilter OUTGOING_MESSAGE_FILTER = new AndFilter(
|
||||
MessageTypeFilter.NORMAL_OR_CHAT_OR_GROUPCHAT,
|
||||
MessageTypeFilter.NORMAL_OR_CHAT,
|
||||
MessageWithBodiesFilter.INSTANCE,
|
||||
new NotFilter(ChatMarkersFilter.INSTANCE),
|
||||
EligibleForChatMarker.INSTANCE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue