Pass the account metadata to delegate on initialization

This commit is contained in:
Maurice Parker 2019-12-16 14:19:55 -07:00
parent 58b24f3349
commit 9dad3f0540
1 changed files with 2 additions and 1 deletions

View File

@ -241,11 +241,12 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
self.delegate = FeedlyAccountDelegate(dataFolder: dataFolder, transport: transport, api: FeedlyAccountDelegate.environment)
case .feedWrangler:
self.delegate = FeedWranglerAccountDelegate(dataFolder: dataFolder, transport: transport)
default:
return nil
}
self.delegate.accountMetadata = metadata
self.accountID = accountID
self.type = type
self.dataFolder = dataFolder