From ee059515d03920e0e6885023b4fec98cb2ab4b9d Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 20 Oct 2025 23:15:12 +0400 Subject: [PATCH] Fix build --- .../PeerInfoUI/Sources/DeviceContactInfoController.swift | 2 +- .../NewContactScreen/Sources/NewContactScreen.swift | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/submodules/PeerInfoUI/Sources/DeviceContactInfoController.swift b/submodules/PeerInfoUI/Sources/DeviceContactInfoController.swift index 624df973e1..73cdece2cb 100644 --- a/submodules/PeerInfoUI/Sources/DeviceContactInfoController.swift +++ b/submodules/PeerInfoUI/Sources/DeviceContactInfoController.swift @@ -1197,7 +1197,7 @@ public func deviceContactInfoController(context: ShareControllerAccountContext, break } - return context.engine.contacts.importContact(firstName: composedContactData.basicData.firstName, lastName: composedContactData.basicData.lastName, phoneNumber: filteredPhoneNumbers[0].value) + return context.engine.contacts.importContact(firstName: composedContactData.basicData.firstName, lastName: composedContactData.basicData.lastName, phoneNumber: filteredPhoneNumbers[0].value, noteText: "", noteEntities: []) |> castError(AddContactError.self) |> mapToSignal { peerId -> Signal<(DeviceContactStableId, DeviceContactExtendedData, EnginePeer?)?, AddContactError> in if let peerId = peerId { diff --git a/submodules/TelegramUI/Components/Contacts/NewContactScreen/Sources/NewContactScreen.swift b/submodules/TelegramUI/Components/Contacts/NewContactScreen/Sources/NewContactScreen.swift index 1b02c24cba..280b539caa 100644 --- a/submodules/TelegramUI/Components/Contacts/NewContactScreen/Sources/NewContactScreen.swift +++ b/submodules/TelegramUI/Components/Contacts/NewContactScreen/Sources/NewContactScreen.swift @@ -911,8 +911,8 @@ public class NewContactScreen: ViewControllerComponentContainer { } fileprivate func complete(result: NewContactScreenComponent.Result) { + let entities = generateChatInputTextEntities(result.note) if let peer = result.peer { - let entities = generateChatInputTextEntities(result.note) let _ = self.context.engine.contacts.addContactInteractively( peerId: peer.id, firstName: result.firstName, @@ -926,7 +926,9 @@ public class NewContactScreen: ViewControllerComponentContainer { let _ = self.context.engine.contacts.importContact( firstName: result.firstName, lastName: result.lastName, - phoneNumber: result.phoneNumber + phoneNumber: result.phoneNumber, + noteText: result.note.string, + noteEntities: entities ).startStandalone() } }