Don't add separator if can't add accounts

This commit is contained in:
Ali 2020-02-22 01:38:55 +04:00
parent 9407166668
commit bad8625c30

View File

@ -803,10 +803,10 @@ private final class SettingsControllerImpl: ItemListController, SettingsControll
strongSelf.addAccount?() strongSelf.addAccount?()
f(.dismissWithoutContent) f(.dismissWithoutContent)
}))) })))
items.append(.separator)
} }
items.append(.separator)
func accountIconSignal(account: Account, peer: Peer, size: CGSize) -> Signal<UIImage?, NoError> { func accountIconSignal(account: Account, peer: Peer, size: CGSize) -> Signal<UIImage?, NoError> {
let iconSignal: Signal<UIImage?, NoError> let iconSignal: Signal<UIImage?, NoError>
if let signal = peerAvatarImage(account: account, peerReference: PeerReference(peer), authorOfMessage: nil, representation: peer.profileImageRepresentations.first, displayDimensions: size, inset: 0.0, emptyColor: nil, synchronousLoad: false) { if let signal = peerAvatarImage(account: account, peerReference: PeerReference(peer), authorOfMessage: nil, representation: peer.profileImageRepresentations.first, displayDimensions: size, inset: 0.0, emptyColor: nil, synchronousLoad: false) {