From dae95c7918a28dd240f615494332de8d765a4ee5 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Tue, 20 Jun 2023 13:41:05 +0300 Subject: [PATCH] fix: always update `localNickName` (#11161) --- src/app_service/service/contacts/service.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app_service/service/contacts/service.nim b/src/app_service/service/contacts/service.nim index 4b2a76dff6..1c09aeb5ac 100644 --- a/src/app_service/service/contacts/service.nim +++ b/src/app_service/service/contacts/service.nim @@ -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