mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-30 19:57:21 +00:00
Fixed restrictions for channels.
- Regression was introduced in 567bf60644
.
This commit is contained in:
parent
ae075e9b90
commit
8486ad368e
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user