diff --git a/Telegram/SourceFiles/window/layer_widget.cpp b/Telegram/SourceFiles/window/layer_widget.cpp index 3b04843834..002dde9103 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 ab7549ef0f..88f8bad8b9 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 _controller;