diff --git a/Telegram/SourceFiles/data/data_peer.cpp b/Telegram/SourceFiles/data/data_peer.cpp index ff0efe9ba..cd820b55c 100644 --- a/Telegram/SourceFiles/data/data_peer.cpp +++ b/Telegram/SourceFiles/data/data_peer.cpp @@ -757,7 +757,7 @@ std::optional RestrictionError( const auto channel = peer->asChannel(); if (!all && channel) { auto restrictedUntil = channel->restrictedUntil(); - if (restrictedUntil > 0) { + if (restrictedUntil > 0 && !ChannelData::IsRestrictedForever(restrictedUntil)) { auto restrictedUntilDateTime = base::unixtime::parse(channel->restrictedUntil()); auto date = restrictedUntilDateTime.toString(qsl("d.MM.yy")); auto time = restrictedUntilDateTime.toString(cTimeFormat());