From b6b5eb89e51a7e322d7ba16d8cd1ba40f0417aec Mon Sep 17 00:00:00 2001 From: Pavel Gurov Date: Sun, 23 Jun 2019 19:08:55 +0300 Subject: [PATCH] Close delete button when editing is over --- TelegramUI/CallListController.swift | 1 + TelegramUI/CallListControllerNode.swift | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/TelegramUI/CallListController.swift b/TelegramUI/CallListController.swift index 6aa11944..106f9f7e 100644 --- a/TelegramUI/CallListController.swift +++ b/TelegramUI/CallListController.swift @@ -246,6 +246,7 @@ public final class CallListController: ViewController { self.controllerNode.updateState { state in return state.withUpdatedEditing(false) } + self.controllerNode.dismissAllRevealOptions() } private func call(_ peerId: PeerId, began: (() -> Void)? = nil) { diff --git a/TelegramUI/CallListControllerNode.swift b/TelegramUI/CallListControllerNode.swift index e0d44035..5103dc24 100644 --- a/TelegramUI/CallListControllerNode.swift +++ b/TelegramUI/CallListControllerNode.swift @@ -377,6 +377,10 @@ final class CallListControllerNode: ASDisplayNode { self.emptyStateDisposable.dispose() } + func dismissAllRevealOptions() { + listNode.dismissAllRevealOptions() + } + func updateThemeAndStrings(theme: PresentationTheme, strings: PresentationStrings, dateTimeFormat: PresentationDateTimeFormat, disableAnimations: Bool) { if theme !== self.currentState.theme || strings !== self.currentState.strings || disableAnimations != self.currentState.disableAnimations { switch self.mode {