Merge commit 'a7d54f9c8a35413db1b61a1c794d081fa956cc92'

This commit is contained in:
Ali 2019-12-17 21:26:48 +04:00
commit fb63caa960

View File

@ -13,10 +13,6 @@ public enum CreateChannelError {
}
private func createChannel(account: Account, title: String, description: String?, isSupergroup:Bool, location: (latitude: Double, longitude: Double, address: String)? = nil) -> Signal<PeerId, CreateChannelError> {
#if DEBUG
return .fail(.tooMuchJoined)
#endif
return account.postbox.transaction { transaction -> Signal<PeerId, CreateChannelError> in
var flags: Int32 = 0
if isSupergroup {