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

@@ -425,7 +425,7 @@ public func createGroupControllerImpl(context: AccountContext, peerIds: [PeerId]
let createSignal: Signal<PeerId?, CreateGroupError>
switch mode {
case .generic:
createSignal = createGroup(account: context.account, title: title, peerIds: peerIds)
createSignal = context.engine.peers.createGroup(title: title, peerIds: peerIds)
case .supergroup:
createSignal = createSupergroup(account: context.account, title: title, description: nil)
|> map(Optional.init)