From 4e595d5cef47c0a9610e467d87e3e5488e5f4188 Mon Sep 17 00:00:00 2001 From: John Preston <johnprestonmail@gmail.com> Date: Sat, 6 Jul 2019 15:24:23 +0200 Subject: [PATCH] Fix GIFs preview. --- Telegram/SourceFiles/window/layer_widget.cpp | 2 +- Telegram/SourceFiles/window/layer_widget.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/window/layer_widget.cpp b/Telegram/SourceFiles/window/layer_widget.cpp index 3b0484383..002dde910 100644 --- a/Telegram/SourceFiles/window/layer_widget.cpp +++ b/Telegram/SourceFiles/window/layer_widget.cpp @@ -1161,7 +1161,7 @@ void MediaPreviewWidget::clipCallback(Media::Clip::Notification notification) { case NotificationRepaint: { if (_gif && !_gif->currentDisplayed()) { - updateArea(); + update(updateArea()); } } break; } diff --git a/Telegram/SourceFiles/window/layer_widget.h b/Telegram/SourceFiles/window/layer_widget.h index ab7549ef0..88f8bad8b 100644 --- a/Telegram/SourceFiles/window/layer_widget.h +++ b/Telegram/SourceFiles/window/layer_widget.h @@ -226,7 +226,7 @@ private: void startShow(); void fillEmojiString(); void resetGifAndCache(); - QRect updateArea() const; + [[nodiscard]] QRect updateArea() const; not_null<Window::SessionController*> _controller;