mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix crash in inline bots results.
This commit is contained in:
parent
e1ff230547
commit
530aae4bdb
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ ClickHandlerPtr ItemBase::getResultPreviewHandler() const {
|
|||
_result->_content_url,
|
||||
false);
|
||||
} else if (const auto document = _result->_document
|
||||
; document->createMediaView()->canBePlayed()) {
|
||||
; document && document->createMediaView()->canBePlayed()) {
|
||||
return std::make_shared<OpenFileClickHandler>();
|
||||
} else if (_result->_photo) {
|
||||
return std::make_shared<OpenFileClickHandler>();
|
||||
|
|
Loading…
Add table
Reference in a new issue