Do not show profile name changes on first update.
This commit is contained in:
parent
7a019eee19
commit
9440dfb66c
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
||||
android:id="@+id/conversation_update_body"
|
||||
style="@style/Signal.Text.Preview"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
Loading…
Add table
Reference in a new issue