Fix build with Xcode.

This commit is contained in:
John Preston 2024-01-16 11:20:30 +04:00
parent e5cda0e2b1
commit 3829ed5880

View file

@ -228,7 +228,7 @@ inline auto DefaultRestrictionValue(
: AmPremiumValue(&user->session()); : AmPremiumValue(&user->session());
}) | rpl::flatten_latest(); }) | rpl::flatten_latest();
if (other) { if (other) {
return std::move(allowedAny); return allowedAny;
} }
const auto mask = UserDataFlag::VoiceMessagesForbidden; const auto mask = UserDataFlag::VoiceMessagesForbidden;
return rpl::combine( return rpl::combine(