mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 04:17:44 +01:00
Populate the persistent identifier to make Notes aware of the current activity on Monterey.
This commit is contained in:
parent
04d7ab188f
commit
86d62cff33
@ -175,13 +175,14 @@ private extension ActivityManager {
|
|||||||
activity.userInfo = [UserInfoKey.feedIdentifier: articleFetcherIdentifierUserInfo]
|
activity.userInfo = [UserInfoKey.feedIdentifier: articleFetcherIdentifierUserInfo]
|
||||||
activity.requiredUserInfoKeys = Set(activity.userInfo!.keys.map { $0 as! String })
|
activity.requiredUserInfoKeys = Set(activity.userInfo!.keys.map { $0 as! String })
|
||||||
|
|
||||||
|
activity.persistentIdentifier = feed.feedID?.description ?? ""
|
||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
activity.suggestedInvocationPhrase = title
|
activity.suggestedInvocationPhrase = title
|
||||||
activity.isEligibleForPrediction = true
|
activity.isEligibleForPrediction = true
|
||||||
activity.persistentIdentifier = feed.feedID?.description ?? ""
|
|
||||||
activity.contentAttributeSet?.relatedUniqueIdentifier = feed.feedID?.description ?? ""
|
activity.contentAttributeSet?.relatedUniqueIdentifier = feed.feedID?.description ?? ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return activity
|
return activity
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,11 +201,12 @@ private extension ActivityManager {
|
|||||||
|
|
||||||
activity.isEligibleForHandoff = true
|
activity.isEligibleForHandoff = true
|
||||||
|
|
||||||
|
activity.persistentIdentifier = ActivityManager.identifer(for: article)
|
||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
activity.keywords = Set(makeKeywords(article))
|
activity.keywords = Set(makeKeywords(article))
|
||||||
activity.isEligibleForSearch = true
|
activity.isEligibleForSearch = true
|
||||||
activity.isEligibleForPrediction = false
|
activity.isEligibleForPrediction = false
|
||||||
activity.persistentIdentifier = ActivityManager.identifer(for: article)
|
|
||||||
updateReadArticleSearchAttributes(with: article)
|
updateReadArticleSearchAttributes(with: article)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user