mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-10-18 00:15:26 +02:00
fix: show translate entire chat button
This commit is contained in:
parent
decef2ca9e
commit
2ee8fe532d
1 changed files with 1 additions and 5 deletions
|
@ -66,11 +66,7 @@ void TranslateTracker::setup() {
|
|||
}) | rpl::distinct_until_changed();
|
||||
|
||||
using namespace rpl::mappers;
|
||||
_trackingLanguage = rpl::combine(
|
||||
Core::App().settings().translateChatEnabledValue(),
|
||||
Data::AmPremiumValue(&_history->session()),
|
||||
std::move(autoTranslationValue),
|
||||
_1 && (_2 || _3));
|
||||
_trackingLanguage = Core::App().settings().translateChatEnabledValue();
|
||||
_trackingLanguage.value() | rpl::start_with_next([=](bool tracking) {
|
||||
_trackingLifetime.destroy();
|
||||
if (tracking) {
|
||||
|
|
Loading…
Add table
Reference in a new issue