Added filling send context menu to TabbedSelector from ComposeControls.

This commit is contained in:
23rd 2020-11-16 21:09:53 +03:00 committed by John Preston
parent 980ce9fba3
commit 04c068d8b3
2 changed files with 5 additions and 3 deletions

View File

@ -1396,6 +1396,8 @@ void ComposeControls::initTabbedSelector() {
selector->inlineResultChosen(
) | rpl::start_to_stream(_inlineResultChosen, wrap->lifetime());
selector->setSendMenuType([=] { return sendMenuType(); });
}
void ComposeControls::initSendButton() {

View File

@ -470,17 +470,17 @@ void RepliesWidget::setupComposeControls() {
_composeControls->fileChosen(
) | rpl::start_with_next([=](Selector::FileChosen chosen) {
sendExistingDocument(chosen.document);
sendExistingDocument(chosen.document, chosen.options);
}, lifetime());
_composeControls->photoChosen(
) | rpl::start_with_next([=](Selector::PhotoChosen chosen) {
sendExistingPhoto(chosen.photo);
sendExistingPhoto(chosen.photo, chosen.options);
}, lifetime());
_composeControls->inlineResultChosen(
) | rpl::start_with_next([=](Selector::InlineChosen chosen) {
sendInlineResult(chosen.result, chosen.bot);
sendInlineResult(chosen.result, chosen.bot, chosen.options);
}, lifetime());
_composeControls->scrollRequests(