diff options
author | Stephen Paul Weber <singpolyma@singpolyma.net> | 2016-01-17 16:46:32 -0500 |
---|---|---|
committer | Stephen Paul Weber <singpolyma@singpolyma.net> | 2016-01-24 17:46:08 -0500 |
commit | 000f59d614d07ac573c1159ea964ebfee6ecbef5 (patch) | |
tree | 8357d260780d9ccc8a4bef7b37ebc72681d51d8b /src/main/java/eu/siacs/conversations/entities | |
parent | bf5b2f73f5a61f0a0179c9d4431579f87eecb001 (diff) |
Fetch cached caps result on new presence
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Presence.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Presence.java b/src/main/java/eu/siacs/conversations/entities/Presence.java index adba74d1..d31bb69d 100644 --- a/src/main/java/eu/siacs/conversations/entities/Presence.java +++ b/src/main/java/eu/siacs/conversations/entities/Presence.java @@ -22,8 +22,11 @@ public class Presence implements Comparable { } protected final Status status; + protected final ServiceDiscoveryResult disco; + + public Presence(Element show, ServiceDiscoveryResult disco) { + this.disco = disco; - public Presence(Element show) { if ((show == null) || (show.getContent() == null)) { this.status = Status.ONLINE; } else if (show.getContent().equals("away")) { |