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:
@@ -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);
|
||||
|
@@ -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),
|
||||
|
Reference in New Issue
Block a user