mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Don't add separator if can't add accounts
This commit is contained in:
parent
9407166668
commit
bad8625c30
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user