Fixed crash in OverlayWidget when user opens attached stickers.

Fixed #8710.
This commit is contained in:
23rd 2020-10-02 17:49:42 +03:00 committed by John Preston
parent a0af748fc5
commit 8d70a62ee8
1 changed files with 2 additions and 2 deletions

View File

@ -1544,15 +1544,15 @@ void OverlayWidget::onCopy() {
void OverlayWidget::onAttachedStickers() {
const auto session = _session;
if (!session) {
if (!session || !_photo) {
return;
}
const auto &active = _session->windows();
if (active.empty()) {
return;
}
close();
active.front()->requestAttachedStickerSets(_photo);
close();
}
auto OverlayWidget::sharedMediaType() const