Fix crash in opening shared media with another user.

This commit is contained in:
John Preston 2021-12-01 13:28:37 +04:00
parent 7b4bc64191
commit f7ec60b958
1 changed files with 3 additions and 0 deletions

View File

@ -742,6 +742,9 @@ void ListWidget::start() {
}
void ListWidget::setupSelectRestriction() {
if (_peer->isUser()) {
return;
}
const auto chat = _peer->asChat();
const auto channel = _peer->asChannel();
auto noForwards = chat