mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 20:16:54 +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.requiredUserInfoKeys = Set(activity.userInfo!.keys.map { $0 as! String })
|
||||
|
||||
activity.persistentIdentifier = feed.feedID?.description ?? ""
|
||||
|
||||
#if os(iOS)
|
||||
activity.suggestedInvocationPhrase = title
|
||||
activity.isEligibleForPrediction = true
|
||||
activity.persistentIdentifier = feed.feedID?.description ?? ""
|
||||
activity.contentAttributeSet?.relatedUniqueIdentifier = feed.feedID?.description ?? ""
|
||||
#endif
|
||||
|
||||
|
||||
return activity
|
||||
}
|
||||
|
||||
@ -200,11 +201,12 @@ private extension ActivityManager {
|
||||
|
||||
activity.isEligibleForHandoff = true
|
||||
|
||||
activity.persistentIdentifier = ActivityManager.identifer(for: article)
|
||||
|
||||
#if os(iOS)
|
||||
activity.keywords = Set(makeKeywords(article))
|
||||
activity.isEligibleForSearch = true
|
||||
activity.isEligibleForPrediction = false
|
||||
activity.persistentIdentifier = ActivityManager.identifer(for: article)
|
||||
updateReadArticleSearchAttributes(with: article)
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user