mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added filling send context menu to TabbedSelector from ComposeControls.
This commit is contained in:
parent
980ce9fba3
commit
04c068d8b3
2 changed files with 5 additions and 3 deletions
|
@ -1396,6 +1396,8 @@ void ComposeControls::initTabbedSelector() {
|
||||||
|
|
||||||
selector->inlineResultChosen(
|
selector->inlineResultChosen(
|
||||||
) | rpl::start_to_stream(_inlineResultChosen, wrap->lifetime());
|
) | rpl::start_to_stream(_inlineResultChosen, wrap->lifetime());
|
||||||
|
|
||||||
|
selector->setSendMenuType([=] { return sendMenuType(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComposeControls::initSendButton() {
|
void ComposeControls::initSendButton() {
|
||||||
|
|
|
@ -470,17 +470,17 @@ void RepliesWidget::setupComposeControls() {
|
||||||
|
|
||||||
_composeControls->fileChosen(
|
_composeControls->fileChosen(
|
||||||
) | rpl::start_with_next([=](Selector::FileChosen chosen) {
|
) | rpl::start_with_next([=](Selector::FileChosen chosen) {
|
||||||
sendExistingDocument(chosen.document);
|
sendExistingDocument(chosen.document, chosen.options);
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
_composeControls->photoChosen(
|
_composeControls->photoChosen(
|
||||||
) | rpl::start_with_next([=](Selector::PhotoChosen chosen) {
|
) | rpl::start_with_next([=](Selector::PhotoChosen chosen) {
|
||||||
sendExistingPhoto(chosen.photo);
|
sendExistingPhoto(chosen.photo, chosen.options);
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
_composeControls->inlineResultChosen(
|
_composeControls->inlineResultChosen(
|
||||||
) | rpl::start_with_next([=](Selector::InlineChosen chosen) {
|
) | rpl::start_with_next([=](Selector::InlineChosen chosen) {
|
||||||
sendInlineResult(chosen.result, chosen.bot);
|
sendInlineResult(chosen.result, chosen.bot, chosen.options);
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
_composeControls->scrollRequests(
|
_composeControls->scrollRequests(
|
||||||
|
|
Loading…
Add table
Reference in a new issue