Skip to content

Commit 67f8ad9

Browse files
stokitoFlowdalic
andauthored
Update smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java
Co-authored-by: Florian Schmaus <flo@geekplace.eu>
1 parent 73f1a89 commit 67f8ad9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • smack-core/src/main/java/org/jivesoftware/smack/packet

smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public boolean isAway() {
140140
* @return true if the presence type is available and the presence mode is available or chat.
141141
*/
142142
public boolean isActive() {
143-
return type == Type.available && (mode == Mode.available || mode == Mode.chat);
143+
return isAvailable() && !isAway()
144144
}
145145

146146
@Override

0 commit comments

Comments
 (0)