Merge branch 'ios-release' of https://github.com/Ranchero-Software/NetNewsWire into ios-release
This commit is contained in:
commit
c6c311aa58
|
@ -59,6 +59,20 @@ final class FeedlyCreateFeedsForCollectionFoldersOperation: FeedlyOperation {
|
||||||
|
|
||||||
// find an existing feed previously added to the account
|
// find an existing feed previously added to the account
|
||||||
if let feed = account.existingWebFeed(withWebFeedID: collectionFeed.id) {
|
if let feed = account.existingWebFeed(withWebFeedID: collectionFeed.id) {
|
||||||
|
|
||||||
|
// If the feed was renamed on Feedly, ensure we ingest the new name.
|
||||||
|
if feed.nameForDisplay != collectionFeed.title {
|
||||||
|
feed.name = collectionFeed.title
|
||||||
|
|
||||||
|
// Let the rest of the app (e.g.: the sidebar) know the feed name changed
|
||||||
|
// `editedName` would post this if its value is changing.
|
||||||
|
// Setting the `name` property has no side effects like this.
|
||||||
|
if feed.editedName != nil {
|
||||||
|
feed.editedName = nil
|
||||||
|
} else {
|
||||||
|
feed.postDisplayNameDidChangeNotification()
|
||||||
|
}
|
||||||
|
}
|
||||||
return (feed, folder)
|
return (feed, folder)
|
||||||
} else {
|
} else {
|
||||||
// find an existing feed we created below in an earlier value
|
// find an existing feed we created below in an earlier value
|
||||||
|
|
Loading…
Reference in New Issue