diff --git a/ts/textsecure/ContactsParser.ts b/ts/textsecure/ContactsParser.ts index d309bc0fe6..4b71f93e7c 100644 --- a/ts/textsecure/ContactsParser.ts +++ b/ts/textsecure/ContactsParser.ts @@ -188,10 +188,6 @@ function prepareContact( proto: Proto.ContactDetails, avatar?: ContactAvatarType ): ContactDetailsWithAvatar | undefined { - const aci = proto.aci - ? normalizeAci(proto.aci, 'ContactBuffer.aci') - : proto.aci; - const expireTimer = proto.expireTimer != null ? DurationInSeconds.fromSeconds(proto.expireTimer) @@ -204,6 +200,10 @@ function prepareContact( return undefined; } + const aci = proto.aci + ? normalizeAci(proto.aci, 'ContactBuffer.aci') + : proto.aci; + const result = { ...proto, expireTimer,