mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Fix new window crash for unavailable channels.
This commit is contained in:
@@ -1314,6 +1314,7 @@ void MainWidget::ui_showPeerHistory(
|
||||
}
|
||||
const auto unavailable = peer->computeUnavailableReason();
|
||||
if (!unavailable.isEmpty()) {
|
||||
Assert(isPrimary());
|
||||
if (params.activation != anim::activation::background) {
|
||||
controller()->show(Ui::MakeInformBox(unavailable));
|
||||
}
|
||||
|
Reference in New Issue
Block a user