2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Rename restrictionReason to unavailableReason.

This commit is contained in:
John Preston
2019-01-04 11:57:07 +04:00
parent d2d6b319b6
commit 0ce4d66601
6 changed files with 45 additions and 43 deletions

View File

@@ -1593,10 +1593,10 @@ void MainWidget::ui_showPeerHistory(
peerId = peer->id;
if (showAtMsgId > 0) showAtMsgId = -showAtMsgId;
}
auto restriction = peer->restrictionReason();
if (!restriction.isEmpty()) {
const auto unavailable = peer->unavailableReason();
if (!unavailable.isEmpty()) {
if (params.activation != anim::activation::background) {
Ui::show(Box<InformBox>(restriction));
Ui::show(Box<InformBox>(unavailable));
}
return;
}