Added filling send context menu to TabbedSelector from ComposeControls.
This commit is contained in:
parent
980ce9fba3
commit
04c068d8b3
|
@ -1396,6 +1396,8 @@ void ComposeControls::initTabbedSelector() {
|
|||
|
||||
selector->inlineResultChosen(
|
||||
) | rpl::start_to_stream(_inlineResultChosen, wrap->lifetime());
|
||||
|
||||
selector->setSendMenuType([=] { return sendMenuType(); });
|
||||
}
|
||||
|
||||
void ComposeControls::initSendButton() {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue