Upgraded navigation

This commit is contained in:
Peter
2019-09-14 00:13:50 +04:00
parent 99c6240172
commit 538e3dbe70
57 changed files with 1799 additions and 1909 deletions

View File

@@ -403,8 +403,8 @@ public func channelMembersController(context: AccountContext, peerId: PeerId) ->
presentControllerImpl?(textAlertController(context: context, title: nil, text: presentationData.strings.Channel_AddBotErrorHaveRights, actions: [TextAlertAction(type: .genericAction, title: presentationData.strings.Common_Cancel, action: {}), TextAlertAction(type: .defaultAction, title: presentationData.strings.Channel_AddBotAsAdmin, action: {
contactsController?.dismiss()
presentControllerImpl?(channelAdminController(context: context, peerId: peerId, adminId: memberId, initialParticipant: nil, updated: { _ in
}, upgradedToSupergroup: { _, f in f () }, transferedOwnership: { _ in }), ViewControllerPresentationArguments(presentationAnimation: .modalSheet))
pushControllerImpl?(channelAdminController(context: context, peerId: peerId, adminId: memberId, initialParticipant: nil, updated: { _ in
}, upgradedToSupergroup: { _, f in f () }, transferedOwnership: { _ in }))
})]), nil)
} else {
presentControllerImpl?(textAlertController(context: context, title: nil, text: presentationData.strings.Channel_AddBotErrorHaveRights, actions: [TextAlertAction(type: .defaultAction, title: presentationData.strings.Common_OK, action: {})]), nil)
@@ -500,8 +500,8 @@ public func channelMembersController(context: AccountContext, peerId: PeerId) ->
if let infoController = context.sharedContext.makePeerInfoController(context: context, peer: peer, mode: .generic) {
pushControllerImpl?(infoController)
}
}, present: { c, a in
presentControllerImpl?(c, a)
}, pushController: { c in
pushControllerImpl?(c)
})
}