fix: when you set jpegThumbnail, image not appear on app mobile #1406
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π¦ Pull Request β Fix video thumbnail handling on mobile apps
Context
Currently, when sending videos through the API, setting the
jpegThumbnail
manually (e.g., using a local image file likevideo-cover.png
) was not showing any thumbnail preview on mobile WhatsApp applications.After investigating, it was observed that:
jpegThumbnail
without proper optimization causes the thumbnail to be ignored silently on mobile devices.What has changed
jpegThumbnail
manually from static images.gifPlayback = false
for all video media messages (keeping consistent behavior between web and mobile apps).Now, the native behavior of WhatsApp handles thumbnails better when
jpegThumbnail
is not manually set incorrectly.How it was fixed
No longer trying to inject a static
jpegThumbnail
.Impact
Related
fix: when you set jpegThumbnail, image not appear on app mobile
β Now videos sent through the API show the proper behavior on both WhatsApp Web and WhatsApp Mobile.
Summary by Sourcery
Fix video thumbnail handling for WhatsApp media messages to ensure proper thumbnail display on mobile apps
New Features:
Bug Fixes:
Enhancements: