mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Tab experiment fixes
This commit is contained in:
@@ -803,8 +803,6 @@ private final class SettingsControllerImpl: ItemListController, SettingsControll
|
||||
strongSelf.addAccount?()
|
||||
f(.dismissWithoutContent)
|
||||
})))
|
||||
|
||||
items.append(.separator)
|
||||
}
|
||||
|
||||
func accountIconSignal(account: Account, peer: Peer, size: CGSize) -> Signal<UIImage?, NoError> {
|
||||
@@ -837,6 +835,10 @@ private final class SettingsControllerImpl: ItemListController, SettingsControll
|
||||
f(.default)
|
||||
})))
|
||||
|
||||
if !other.isEmpty {
|
||||
items.append(.separator)
|
||||
}
|
||||
|
||||
for account in other {
|
||||
let id = account.0.id
|
||||
items.append(.action(ContextMenuActionItem(text: account.1.displayTitle(strings: strings, displayOrder: presentationData.nameDisplayOrder), badge: account.2 != 0 ? "\(account.2)" : "", icon: { _ in nil }, iconSource: ContextMenuActionItemIconSource(size: avatarSize, signal: accountIconSignal(account: account.0, peer: account.1, size: avatarSize)), action: { [weak self] _, f in
|
||||
|
||||
Reference in New Issue
Block a user