fix the name won't update for the first message

This commit is contained in:
Ryan ZHAO 2021-04-30 16:00:33 +10:00
parent e64ac14b77
commit 9afa0d5886

View File

@ -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);
}