From 6850cc5ab405154d6410ee1dde1db57a448393bb Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 27 Nov 2021 10:20:59 +0400 Subject: [PATCH] Beta version 3.2.6: Fix build in Release on macOS. --- Telegram/SourceFiles/history/history_inner_widget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 96e3607f7..658bbac75 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -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()