From 7757cad83922d26f3323f0bc879abb96232b6db4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 8 Jun 2020 12:09:07 +0400 Subject: [PATCH] Fix crash in media viewer refresh in showPhoto. --- Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index b2234b6918..9aaf144c65 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -1883,8 +1883,6 @@ void OverlayWidget::showPhoto(not_null photo, HistoryItem *context) _firstOpenedPeerPhoto = false; assignMediaPointer(photo); - refreshMediaViewer(); - displayPhoto(photo, context); preloadData(0); activateControls(); @@ -1897,8 +1895,6 @@ void OverlayWidget::showPhoto(not_null photo, not_null co _firstOpenedPeerPhoto = true; assignMediaPointer(photo); - refreshMediaViewer(); - displayPhoto(photo, nullptr); preloadData(0); activateControls();