mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Save item views in App::*Item() variables.
Also remove App::contextItem. Also use owning pointers for history context menus.
This commit is contained in:
@@ -137,8 +137,7 @@ void PhotoCancelClickHandler::onClickImpl() const {
|
||||
|
||||
if (data->uploading()) {
|
||||
if (const auto item = App::histItemById(context())) {
|
||||
App::contextItem(item);
|
||||
App::main()->cancelUploadLayer();
|
||||
App::main()->cancelUploadLayer(item);
|
||||
}
|
||||
} else {
|
||||
data->cancel();
|
||||
|
Reference in New Issue
Block a user