mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: show translate entire chat button
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user