Various chat theme fixes

This commit is contained in:
Ilya Laktyushin
2021-09-12 16:01:19 +03:00
parent 705bcfc496
commit 811cf639fa
5 changed files with 120 additions and 52 deletions

View File

@@ -13460,6 +13460,14 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
return nil
}
}
controller.dismissed = { [weak self] in
if let strongSelf = self {
strongSelf.chatDisplayNode.historyNode.tapped = nil
}
}
strongSelf.chatDisplayNode.historyNode.tapped = { [weak controller] in
controller?.dimTapped()
}
strongSelf.present(controller, in: .window(.root))
strongSelf.themeSceen = controller
})