mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-15 03:27:10 +00:00
Fix crash in media viewer refresh in showPhoto.
This commit is contained in:
parent
bdbcd8e540
commit
7757cad839
@ -1883,8 +1883,6 @@ void OverlayWidget::showPhoto(not_null<PhotoData*> photo, HistoryItem *context)
|
|||||||
_firstOpenedPeerPhoto = false;
|
_firstOpenedPeerPhoto = false;
|
||||||
assignMediaPointer(photo);
|
assignMediaPointer(photo);
|
||||||
|
|
||||||
refreshMediaViewer();
|
|
||||||
|
|
||||||
displayPhoto(photo, context);
|
displayPhoto(photo, context);
|
||||||
preloadData(0);
|
preloadData(0);
|
||||||
activateControls();
|
activateControls();
|
||||||
@ -1897,8 +1895,6 @@ void OverlayWidget::showPhoto(not_null<PhotoData*> photo, not_null<PeerData*> co
|
|||||||
_firstOpenedPeerPhoto = true;
|
_firstOpenedPeerPhoto = true;
|
||||||
assignMediaPointer(photo);
|
assignMediaPointer(photo);
|
||||||
|
|
||||||
refreshMediaViewer();
|
|
||||||
|
|
||||||
displayPhoto(photo, nullptr);
|
displayPhoto(photo, nullptr);
|
||||||
preloadData(0);
|
preloadData(0);
|
||||||
activateControls();
|
activateControls();
|
||||||
|
Loading…
Reference in New Issue
Block a user