diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java index 71d7c3697..8bd7c1e0d 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java @@ -66,7 +66,15 @@ public final class Presence extends Stanza implements TypedCloneable { private Type type = Type.available; private String status = null; + + /** + * The priority of the presence. The magic value {@link Integer#MIN_VALUE} is used to indicate that the original + * presence stanza did not had an explicit priority set. In which case the priority defaults to 0. + * + * @see RFC 6121 ยง 4.7.2.3. + */ private int priority = Integer.MIN_VALUE; + private Mode mode = null; /**