2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add send context menu to StickerSetBox.

This commit is contained in:
John Preston
2021-11-02 20:11:20 +04:00
parent e73928f6a3
commit 4efeaacf5c
4 changed files with 92 additions and 17 deletions

View File

@@ -1067,8 +1067,18 @@ void MainWidget::inlineResultLoadFailed(FileLoader *loader, bool started) {
//Ui::repaintInlineItem();
}
SendMenu::Type MainWidget::sendMenuType() const {
return _history->sendMenuType();
}
bool MainWidget::sendExistingDocument(not_null<DocumentData*> document) {
return _history->sendExistingDocument(document, Api::SendOptions());
return sendExistingDocument(document, Api::SendOptions());
}
bool MainWidget::sendExistingDocument(
not_null<DocumentData*> document,
Api::SendOptions options) {
return _history->sendExistingDocument(document, options);
}
void MainWidget::dialogsCancelled() {