Scheduled Messages UI improvements

This commit is contained in:
Ilya Laktyushin
2019-08-21 02:05:10 +03:00
parent 4b6c54f84a
commit 263d78c1b3
31 changed files with 234 additions and 200 deletions

View File

@@ -570,7 +570,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController,
return
}
let beginClear: (InteractiveMessagesDeletionType) -> Void = { type in
let beginClear: (InteractiveHistoryClearingType) -> Void = { type in
guard let strongSelf = self else {
return
}
@@ -748,7 +748,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController,
}
strongSelf.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: strongSelf.context, chatLocation: .peer(actualPeerId), messageId: messageId, purposefulAction: {
strongSelf.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: strongSelf.context, chatLocation: .peer(actualPeerId), subject: .message(messageId), purposefulAction: {
self?.deactivateSearch(animated: false)
}, scrollToEndIfExists: scrollToEndIfExists, options: strongSelf.groupId == PeerGroupId.root ? [.removeOnMasterDetails] : []))
strongSelf.chatListDisplayNode.chatListNode.clearHighlightAnimated(true)