Refactoring

This commit is contained in:
Ali
2021-04-26 02:00:48 +04:00
parent bc108d8dc1
commit 1b48517f12
126 changed files with 407 additions and 377 deletions

View File

@@ -797,7 +797,7 @@ public func channelPermissionsController(context: AccountContext, peerId origina
let progress = OverlayStatusController(theme: presentationData.theme, type: .loading(cancelled: nil))
presentControllerImpl?(progress, nil)
let signal = convertGroupToSupergroup(account: context.account, peerId: view.peerId)
let signal = context.engine.peers.convertGroupToSupergroup(peerId: view.peerId)
|> mapError { error -> UpdateChannelSlowModeError in
switch error {
case .tooManyChannels: