mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 17:41:16 +00:00
Fixed restrictions for channels.
- Regression was introduced in 567bf60644.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user