diff options
Diffstat (limited to 'src/eu/siacs/conversations/persistance/DatabaseBackend.java')
-rw-r--r-- | src/eu/siacs/conversations/persistance/DatabaseBackend.java | 5 |
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 68fc56cde..ad4555c2e 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()); |