Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3282076
D4123.id13102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4123.id13102.diff
View Options
diff --git a/lib/media/file-utils.js b/lib/media/file-utils.js
--- a/lib/media/file-utils.js
+++ b/lib/media/file-utils.js
@@ -33,7 +33,9 @@
serverTranscodesImage: true,
},
'image/gif': {
- mediaType: 'photo_or_video',
+ // Set mediaType to 'photo_or_video' when working on
+ // video messages to treat animated GIFs as videos.
+ mediaType: 'photo',
extension: 'gif',
serverCanHandle: true,
serverTranscodesImage: true,
diff --git a/native/media/media-gallery-keyboard.react.js b/native/media/media-gallery-keyboard.react.js
--- a/native/media/media-gallery-keyboard.react.js
+++ b/native/media/media-gallery-keyboard.react.js
@@ -189,7 +189,9 @@
} = await MediaLibrary.getAssetsAsync({
first: 20,
after,
- mediaType: [MediaLibrary.MediaType.photo, MediaLibrary.MediaType.video],
+ // Include `MediaLibrary.MediaType.video` in `mediaType` array
+ // when working on video messages so videos show up in media gallery.
+ mediaType: [MediaLibrary.MediaType.photo],
sortBy: [MediaLibrary.SortBy.modificationTime],
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 10:39 AM (20 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2519927
Default Alt Text
D4123.id13102.diff (1 KB)
Attached To
Mode
D4123: [native][lib] "Permanently" make changes for release
Attached
Detach File
Event Timeline
Log In to Comment