mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Merge branch 'master' into features/64-bit
This commit is contained in:
@@ -427,7 +427,7 @@ public func createGroupControllerImpl(context: AccountContext, peerIds: [PeerId]
|
||||
case .generic:
|
||||
createSignal = context.engine.peers.createGroup(title: title, peerIds: peerIds)
|
||||
case .supergroup:
|
||||
createSignal = createSupergroup(account: context.account, title: title, description: nil)
|
||||
createSignal = context.engine.peers.createSupergroup(title: title, description: nil)
|
||||
|> map(Optional.init)
|
||||
|> mapError { error -> CreateGroupError in
|
||||
switch error {
|
||||
@@ -454,7 +454,7 @@ public func createGroupControllerImpl(context: AccountContext, peerIds: [PeerId]
|
||||
guard let address = address else {
|
||||
return .complete()
|
||||
}
|
||||
return createSupergroup(account: context.account, title: title, description: nil, location: (location.latitude, location.longitude, address))
|
||||
return context.engine.peers.createSupergroup(title: title, description: nil, location: (location.latitude, location.longitude, address))
|
||||
|> map(Optional.init)
|
||||
|> mapError { error -> CreateGroupError in
|
||||
switch error {
|
||||
|
||||
Reference in New Issue
Block a user