do not update loki display name is given string is '' onContactSync

pull/1252/head
Audric Ackermann 5 years ago
parent ba7241b2cb
commit 9a5c73af3c
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -377,16 +377,17 @@ async function onContactReceived(details: any) {
conversation.setProfileKey(profileKey);
}
// Do not set name to allow working with lokiProfile and nicknames
conversation.set({
// name: details.name,
color: details.color,
});
await conversation.setLokiProfile({ displayName: details.name });
if (details.name && details.name.length) {
await conversation.setLokiProfile({ displayName: details.name });
}
if (details.nickname) {
if (details.nickname && details.nickname.length) {
await conversation.setNickname(details.nickname);
}

Loading…
Cancel
Save