mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Merge pull request #389 from guusdk/pep-notification-message-type
pep: notification type can be normal or headline
This commit is contained in:
commit
25a5261dc0
2 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ public final class MessageTypeFilter extends FlexibleStanzaTypeFilter<Message> {
|
||||||
public static final StanzaFilter HEADLINE = new MessageTypeFilter(Type.headline);
|
public static final StanzaFilter HEADLINE = new MessageTypeFilter(Type.headline);
|
||||||
public static final StanzaFilter ERROR = new MessageTypeFilter(Type.error);
|
public static final StanzaFilter ERROR = new MessageTypeFilter(Type.error);
|
||||||
public static final StanzaFilter NORMAL_OR_CHAT = new OrFilter(NORMAL, CHAT);
|
public static final StanzaFilter NORMAL_OR_CHAT = new OrFilter(NORMAL, CHAT);
|
||||||
|
public static final StanzaFilter NORMAL_OR_HEADLINE = new OrFilter(NORMAL, HEADLINE);
|
||||||
public static final StanzaFilter NORMAL_OR_CHAT_OR_HEADLINE = new OrFilter(NORMAL_OR_CHAT,
|
public static final StanzaFilter NORMAL_OR_CHAT_OR_HEADLINE = new OrFilter(NORMAL_OR_CHAT,
|
||||||
HEADLINE);
|
HEADLINE);
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ public final class PepManager extends Manager {
|
||||||
// TODO: Ideally PepManager would re-use PubSubManager for this. But the functionality in PubSubManager does not yet
|
// TODO: Ideally PepManager would re-use PubSubManager for this. But the functionality in PubSubManager does not yet
|
||||||
// exist.
|
// exist.
|
||||||
private static final StanzaFilter PEP_EVENTS_FILTER = new AndFilter(
|
private static final StanzaFilter PEP_EVENTS_FILTER = new AndFilter(
|
||||||
MessageTypeFilter.HEADLINE,
|
MessageTypeFilter.NORMAL_OR_HEADLINE,
|
||||||
FromJidTypeFilter.ENTITY_BARE_JID,
|
FromJidTypeFilter.ENTITY_BARE_JID,
|
||||||
EventItemsExtensionFilter.INSTANCE);
|
EventItemsExtensionFilter.INSTANCE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue