mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in opening shared media with another user.
This commit is contained in:
parent
7b4bc64191
commit
f7ec60b958
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue