mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: issue with GCC
This commit is contained in:
parent
c226311126
commit
e9d9e8df49
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ bool Session::premiumBadgesShown() const {
|
||||||
rpl::producer<bool> Session::premiumPossibleValue() const {
|
rpl::producer<bool> Session::premiumPossibleValue() const {
|
||||||
using namespace rpl::mappers;
|
using namespace rpl::mappers;
|
||||||
|
|
||||||
auto premium = _user->flagsValue(
|
// fix issue with GCC
|
||||||
|
rpl::producer<bool> premium = _user->flagsValue(
|
||||||
) | rpl::filter([=](UserData::Flags::Change change) {
|
) | rpl::filter([=](UserData::Flags::Change change) {
|
||||||
return (change.diff & UserDataFlag::Premium);
|
return (change.diff & UserDataFlag::Premium);
|
||||||
}) | rpl::map([=] {
|
}) | rpl::map([=] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue