aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-05-03 22:16:51 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-05-03 22:16:51 +0200
commitcef2eb58a76ee11b277c3d861d57cb4684e81fef (patch)
treecd139f65a86174a2e3a44d92a306b022719abf32 /src/main
parentfad8b702aaaf3ae9ae867bb2b476adfc21c43558 (diff)
fixed presence template dedup for 'online' status
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/PresenceTemplate.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/PresenceTemplate.java b/src/main/java/eu/siacs/conversations/entities/PresenceTemplate.java
index dd45d7e46..3b3ce08db 100644
--- a/src/main/java/eu/siacs/conversations/entities/PresenceTemplate.java
+++ b/src/main/java/eu/siacs/conversations/entities/PresenceTemplate.java
@@ -28,10 +28,11 @@ public class PresenceTemplate extends AbstractEntity {
@Override
public ContentValues getContentValues() {
+ final String show = status.toShowString();
ContentValues values = new ContentValues();
values.put(LAST_USED, lastUsed);
values.put(MESSAGE, statusMessage);
- values.put(STATUS, status.toShowString());
+ values.put(STATUS, show == null ? "" : show);
values.put(UUID, uuid);
return values;
}