2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added ability to pass Api::SendOptions from TabbedSelector.

This commit is contained in:
23rd
2020-07-24 11:22:45 +03:00
committed by John Preston
parent b71062561a
commit 759e802eba
12 changed files with 35 additions and 22 deletions

View File

@@ -409,10 +409,10 @@ rpl::producer<EmojiPtr> TabbedSelector::emojiChosen() const {
return emoji()->chosen();
}
rpl::producer<not_null<DocumentData*>> TabbedSelector::fileChosen() const {
rpl::producer<TabbedSelector::FileChosen> TabbedSelector::fileChosen() const {
return full()
? rpl::merge(stickers()->chosen(), gifs()->fileChosen())
: rpl::never<not_null<DocumentData*>>() | rpl::type_erased();
: rpl::never<TabbedSelector::FileChosen>() | rpl::type_erased();
}
rpl::producer<not_null<PhotoData*>> TabbedSelector::photoChosen() const {