mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Add convenient appConfig().get<int>(..).
This commit is contained in:
@@ -540,8 +540,7 @@ rpl::producer<int> UniqueReactionsLimitValue(
|
||||
const auto config = &session->account().appConfig();
|
||||
return config->value(
|
||||
) | rpl::map([=] {
|
||||
return int(base::SafeRound(
|
||||
config->get<double>("reactions_uniq_max", 11)));
|
||||
return config->get<int>("reactions_uniq_max", 11);
|
||||
}) | rpl::distinct_until_changed();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user