Delete for everyone checkbox added. Various bugfixes.

This commit is contained in:
John Preston
2016-12-31 19:19:22 +04:00
parent 218f991547
commit eec5b78054
28 changed files with 414 additions and 260 deletions
+2 -2
View File
@@ -927,7 +927,7 @@ void PhotoCancelClickHandler::onClickImpl() const {
if (auto media = item->getMedia()) {
if (media->type() == MediaTypePhoto && static_cast<HistoryPhoto*>(media)->photo() == data) {
App::contextItem(item);
App::main()->deleteLayer(-2);
App::main()->cancelUploadLayer();
}
}
}
@@ -1240,7 +1240,7 @@ void DocumentCancelClickHandler::onClickImpl() const {
if (auto media = item->getMedia()) {
if (media->getDocument() == data) {
App::contextItem(item);
App::main()->deleteLayer(-2);
App::main()->cancelUploadLayer();
}
}
}