Beta version 3.2.6: Fix build in Release on macOS.

This commit is contained in:
John Preston 2021-11-27 10:20:59 +04:00
parent 9360f1f970
commit 6850cc5ab4

View file

@ -279,7 +279,10 @@ void HistoryInner::setupSharingDisallowed() {
const auto channel = _peer->asChannel();
_sharingDisallowed = chat
? Data::PeerFlagValue(chat, ChatDataFlag::NoForwards)
: Data::PeerFlagValue(channel, ChannelDataFlag::NoForwards);
: Data::PeerFlagValue(
channel,
ChannelDataFlag::NoForwards
) | rpl::type_erased();
auto rights = chat
? chat->adminRightsValue()