fix deleteLink

This commit is contained in:
Mike Renoir
2023-03-24 19:50:30 +04:00
parent c7500039fa
commit 75e3dc6b81
2 changed files with 4 additions and 4 deletions

View File

@@ -178,9 +178,9 @@ public enum RevokeChatFolderLinkError {
case generic
}
func _internal_revokeChatFolderLink(account: Account, filterId: Int32, link: ExportedChatFolderLink) -> Signal<Never, RevokeChatFolderLinkError> {
func _internal_deleteChatFolderLink(account: Account, filterId: Int32, link: ExportedChatFolderLink) -> Signal<Never, RevokeChatFolderLinkError> {
return account.network.request(Api.functions.communities.deleteExportedInvite(community: .inputCommunityDialogFilter(filterId: filterId), slug: link.slug))
|> mapError { _ -> RevokeChatFolderLinkError in
|> mapError { error -> RevokeChatFolderLinkError in
return .generic
}
|> ignoreValues