Fix display name not being set correctly once we pair with a device.

This commit is contained in:
Mikunj Varsani 2019-11-19 09:03:32 +11:00
parent 8ccfa77ef6
commit 291fb7f7ad

View File

@ -1116,7 +1116,7 @@ public class PushDecryptJob extends BaseJob implements InjectableType {
storageAPI.updateUserDeviceMappings();
// Update display names
if (content.senderDisplayName.isPresent() && content.senderDisplayName.get().length() > 0) {
setDisplayName(envelope.getSource(), content.senderDisplayName.get());
TextSecurePreferences.setProfileName(context, content.senderDisplayName.get());
}
// Contact sync