2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Prepare code for revoking of full history.

This commit is contained in:
John Preston
2019-03-21 16:07:32 +04:00
parent 2701e63406
commit dd8c526fb7
9 changed files with 111 additions and 162 deletions

View File

@@ -151,6 +151,7 @@ public:
not_null<HistoryItem*> item,
bool suggestModerateActions);
DeleteMessagesBox(QWidget*, MessageIdsList &&selected);
DeleteMessagesBox(QWidget*, not_null<PeerData*> peer, bool deleteChat);
void setDeleteConfirmedCallback(Fn<void()> callback) {
_deleteConfirmedCallback = std::move(callback);

View File

@@ -1109,7 +1109,7 @@ void Controller::deleteChannel() {
Ui::hideLayer();
Ui::showChatsList();
if (chat) {
App::main()->deleteAndExit(chat);
chat->session().api().deleteConversation(chat, false);
}
MTP::send(
MTPchannels_DeleteChannel(channel->inputChannel),