Fix GIFs preview.

This commit is contained in:
John Preston 2019-07-06 15:24:23 +02:00
parent 8486ad368e
commit 4e595d5cef
2 changed files with 2 additions and 2 deletions

View File

@ -1161,7 +1161,7 @@ void MediaPreviewWidget::clipCallback(Media::Clip::Notification notification) {
case NotificationRepaint: {
if (_gif && !_gif->currentDisplayed()) {
updateArea();
update(updateArea());
}
} break;
}

View File

@ -226,7 +226,7 @@ private:
void startShow();
void fillEmojiString();
void resetGifAndCache();
QRect updateArea() const;
[[nodiscard]] QRect updateArea() const;
not_null<Window::SessionController*> _controller;