Merge branch 'requests' of gitlab.com:peter-iakovlev/telegram-ios into requests

This commit is contained in:
Ilya Laktyushin
2021-10-05 17:55:37 +04:00
3 changed files with 16 additions and 8 deletions

View File

@@ -81,6 +81,9 @@ func _internal_createPeerExportedInvitation(account: Account, peerId: PeerId, ex
if let _ = usageLimit {
flags |= (1 << 1)
}
if let _ = requestNeeded {
flags |= (1 << 3)
}
return account.network.request(Api.functions.messages.exportChatInvite(flags: flags, peer: inputPeer, expireDate: expireDate, usageLimit: usageLimit))
|> mapError { _ in return CreatePeerExportedInvitationError.generic }
|> map { result -> ExportedInvitation? in