2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 01:16:12 +00:00

Use tr:: instead of langFactory in input fields.

This commit is contained in:
John Preston
2019-06-18 16:07:45 +02:00
parent 7af0dd105e
commit 8ed433cc01
55 changed files with 299 additions and 222 deletions

View File

@@ -401,28 +401,20 @@ rpl::producer<not_null<DocumentData*>> TabbedSelector::fileChosen() const {
}
rpl::producer<not_null<PhotoData*>> TabbedSelector::photoChosen() const {
return full()
? gifs()->photoChosen()
: rpl::never<not_null<PhotoData*>>();
return full() ? gifs()->photoChosen() : nullptr;
}
auto TabbedSelector::inlineResultChosen() const
-> rpl::producer<InlineChosen> {
return full()
? gifs()->inlineResultChosen()
: rpl::never<InlineChosen>();
return full() ? gifs()->inlineResultChosen() : nullptr;
}
rpl::producer<> TabbedSelector::cancelled() const {
return full()
? gifs()->cancelRequests()
: rpl::never<>();
return full() ? gifs()->cancelRequests() : nullptr;
}
rpl::producer<> TabbedSelector::checkForHide() const {
return full()
? stickers()->checkForHide()
: rpl::never<>();
return full() ? stickers()->checkForHide() : nullptr;
}
rpl::producer<> TabbedSelector::slideFinished() const {