mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactoring
This commit is contained in:
@@ -168,8 +168,7 @@ final class ChatRecentActionsControllerNode: ViewControllerTracingNode {
|
||||
items.append(ActionSheetButtonItem(title: strongSelf.presentationData.strings.InviteLink_ContextRevoke, color: .destructive, action: { [weak actionSheet] in
|
||||
actionSheet?.dismissAnimated()
|
||||
if let strongSelf = self {
|
||||
let _ = (revokePeerExportedInvitation(account: strongSelf.context.account, peerId: peer.id, link: invite.link)
|
||||
|
||||
let _ = (strongSelf.context.engine.peers.revokePeerExportedInvitation(peerId: peer.id, link: invite.link)
|
||||
|> deliverOnMainQueue).start(completed: { [weak self] in
|
||||
self?.eventLogContext.reload()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user