fix: always update `localNickName` (#11161)

This commit is contained in:
Igor Sirotin 2023-06-20 13:41:05 +03:00 committed by GitHub
parent cdb838d578
commit dae95c7918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -174,12 +174,11 @@ QtObject:
if(receivedData.statusUpdates.len > 0):
self.updateAndEmitStatuses(receivedData.statusUpdates)
if(receivedData.contacts.len > 0):
if receivedData.contacts.len > 0:
for c in receivedData.contacts:
let localContact = self.getContactById(c.id)
var receivedContact = c
receivedContact.localNickname = localContact.localNickname
self.saveContact(receivedContact)
# Check if the contact request was sent by us and if it was approved by the recipient