mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Start using document bytes from DocumentMedia.
This commit is contained in:
@@ -315,9 +315,10 @@ void EditCaptionBox::prepareGifPreview(DocumentData* document) {
|
||||
const auto callback = [=](Media::Clip::Notification notification) {
|
||||
clipCallback(notification);
|
||||
};
|
||||
_gifMedia = document ? document->createMediaView() : nullptr;
|
||||
if (document && document->isAnimation() && document->loaded()) {
|
||||
_gifPreview = Media::Clip::MakeReader(
|
||||
document,
|
||||
_gifMedia.get(),
|
||||
_msgId,
|
||||
callback);
|
||||
} else if (!isListEmpty) {
|
||||
|
Reference in New Issue
Block a user