mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix crash in inline bots results.
This commit is contained in:
committed by
RadRussianRus
parent
920a2c300e
commit
f10ab1e547
@@ -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>();
|
||||
|
Reference in New Issue
Block a user