~handlerug/TelegramSwift

065d0b7c0e0083682841b4ba5aaeead624cb91ea — handlerug 4 years ago dfea6ee
Make Spotlight integration compile on newer SDKs
1 files changed, 2 insertions(+), 1 deletions(-)

M Telegram-Mac/Spotlight.swift
M Telegram-Mac/Spotlight.swift => Telegram-Mac/Spotlight.swift +2 -1
@@ 41,7 41,8 @@ struct SpotlightIdentifier : Hashable {

private func makeSearchItem(for peer: Peer, index: Int, accountPeer: Peer, accountId: AccountRecordId) -> SpotlightItem {
    let key = SpotlightIdentifier(recordId: accountId, source: .peerId(peer.id))
    let attributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeData as String)
    let attributeSet = CSSearchableItemAttributeSet()
    attributeSet.contentType = kUTTypeData as String
    attributeSet.title = peer.displayTitle + " → \(accountPeer.addressName ?? accountPeer.displayTitle)"
    attributeSet.contentDescription = "Popular contact in telegram"
    attributeSet.thumbnailData = theme.icons.appUpdate.data