From 9afa0d588692c664afcac332785280bb028c2d73 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Fri, 30 Apr 2021 16:00:33 +1000 Subject: [PATCH] fix the name won't update for the first message --- .../org/thoughtcrime/securesms/database/RecipientDatabase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java b/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java index 20c9fe83f3..65bc3e813e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java +++ b/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java @@ -253,6 +253,7 @@ public class RecipientDatabase extends Database { ContentValues contentValues = new ContentValues(1); contentValues.put(SYSTEM_DISPLAY_NAME, profileName); updateOrInsert(recipient.getAddress(), contentValues); + recipient.resolve().setName(profileName); recipient.resolve().setProfileName(profileName); }