mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix build
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user