2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow revoking only sent messages.

This commit is contained in:
John Preston
2019-03-20 17:02:02 +04:00
parent b972da059a
commit 2701e63406
6 changed files with 84 additions and 57 deletions

View File

@@ -835,13 +835,6 @@ void MainWidget::showSendPathsLayer() {
}
}
void MainWidget::deleteLayer(FullMsgId itemId) {
if (const auto item = App::histItemById(itemId)) {
const auto suggestModerateActions = true;
Ui::show(Box<DeleteMessagesBox>(item, suggestModerateActions));
}
}
void MainWidget::cancelUploadLayer(not_null<HistoryItem*> item) {
const auto itemId = item->fullId();
session().uploader().pause(itemId);