Invite Links Fixes

This commit is contained in:
Ilya Laktyushin
2021-02-15 08:01:11 +04:00
parent eabc08372b
commit 1777f6465a
12 changed files with 4146 additions and 4069 deletions

View File

@@ -531,9 +531,12 @@ public final class InviteLinkViewController: ViewController {
self?.controller?.dismiss()
let _ = (revokePeerExportedInvitation(account: context.account, peerId: peerId, link: invite.link) |> deliverOnMainQueue).start(completed: {
})
self?.controller?.revokedInvitationsContext?.remove(invite)
self?.controller?.invitationsContext?.remove(invite)
let revokedInvite = invite.withUpdated(isRevoked: true)
self?.controller?.revokedInvitationsContext?.add(revokedInvite)
})
]),
ActionSheetItemGroup(items: [ActionSheetButtonItem(title: presentationData.strings.Common_Cancel, action: { dismissAction() })])