aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/persistance/DatabaseBackend.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-19 01:14:30 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-19 01:14:30 +0200
commit5c0873c7cab8bdb95754f4a67839aa6ed5a3d2e8 (patch)
tree8783b29c032b4c0410943d411be404f036d9988e /src/eu/siacs/conversations/persistance/DatabaseBackend.java
parent7ccbf0008a600cd00e3dea1b95890d7454509af3 (diff)
cleaned up debug log a little bit
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/persistance/DatabaseBackend.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/eu/siacs/conversations/persistance/DatabaseBackend.java
index 68fc56cd..ad4555c2 100644
--- a/src/eu/siacs/conversations/persistance/DatabaseBackend.java
+++ b/src/eu/siacs/conversations/persistance/DatabaseBackend.java
@@ -207,6 +207,10 @@ public class DatabaseBackend extends SQLiteOpenHelper {
ContentValues values = contact.getContentValues();
if (!updatePresences) {
values.remove(Contact.PRESENCES);
+ } else {
+ values.remove(Contact.DISPLAYNAME);
+ values.remove(Contact.PHOTOURI);
+ values.remove(Contact.SYSTEMACCOUNT);
}
db.update(Contact.TABLENAME, contact.getContentValues(), Contact.UUID
+ "=?", args);
@@ -231,7 +235,6 @@ public class DatabaseBackend extends SQLiteOpenHelper {
if (cursor.getCount()>=1) {
cursor.moveToFirst();
contact.setUuid(cursor.getString(0));
- //contact.setPresences(Presences.fromJsonString(cursor.getString(1)));
updateContact(contact,false);
} else {
contact.setUuid(UUID.randomUUID().toString());