Fix crash in opening shared media with another user.
This commit is contained in:
parent
7b4bc64191
commit
f7ec60b958
|
@ -742,6 +742,9 @@ void ListWidget::start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListWidget::setupSelectRestriction() {
|
void ListWidget::setupSelectRestriction() {
|
||||||
|
if (_peer->isUser()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto chat = _peer->asChat();
|
const auto chat = _peer->asChat();
|
||||||
const auto channel = _peer->asChannel();
|
const auto channel = _peer->asChannel();
|
||||||
auto noForwards = chat
|
auto noForwards = chat
|
||||||
|
|
Loading…
Reference in New Issue