mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Rename restrictionReason to unavailableReason.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user