Fixed restrictions for channels.

- Regression was introduced in 567bf60644.
This commit is contained in:
23rd 2019-07-06 10:40:31 +03:00
parent ae075e9b90
commit 8486ad368e

View File

@ -613,7 +613,8 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
channel->setVersion(data.vversion().v);
}
if (const auto restriction = data.vrestriction_reason()) {
channel->setUnavailableReason(qs(*restriction));
channel->setUnavailableReason(
ExtractUnavailableReason(qs(*restriction)));
} else {
channel->setUnavailableReason(QString());
}