Do not show restriction date when restricted forever
This commit is contained in:
parent
cce1c7665b
commit
9bacf99a92
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ std::optional<QString> 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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue