mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-30 16:26:48 +00:00
Do not show profile name changes on first update.
This commit is contained in:
@@ -383,7 +383,7 @@ public class RetrieveProfileJob extends BaseJob {
|
||||
Log.i(TAG, "Profile name updated. Writing new value.");
|
||||
DatabaseFactory.getRecipientDatabase(context).setProfileName(recipient.getId(), ProfileName.fromSerialized(plaintextProfileName));
|
||||
|
||||
if (!recipient.isGroup() && !recipient.isLocalNumber()) {
|
||||
if (!(recipient.isGroup() || recipient.isLocalNumber() || TextUtils.isEmpty(previousProfileName))) {
|
||||
//noinspection ConstantConditions
|
||||
DatabaseFactory.getSmsDatabase(context).insertProfileNameChangeMessages(recipient, newProfileName, previousProfileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user