Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3514072
D7295.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
841 B
Referenced Files
None
Subscribers
None
D7295.diff
View Options
diff --git a/lib/reducers/message-reducer.js b/lib/reducers/message-reducer.js
--- a/lib/reducers/message-reducer.js
+++ b/lib/reducers/message-reducer.js
@@ -1236,6 +1236,18 @@
) {
media.push({ ...singleMedia, ...mediaUpdate });
replaced = true;
+ } else if (
+ singleMedia.type === 'encrypted_photo' &&
+ mediaUpdate.type === 'encrypted_photo'
+ ) {
+ media.push({ ...singleMedia, ...mediaUpdate });
+ replaced = true;
+ } else if (
+ singleMedia.type === 'encrypted_video' &&
+ mediaUpdate.type === 'encrypted_video'
+ ) {
+ media.push({ ...singleMedia, ...mediaUpdate });
+ replaced = true;
} else if (
singleMedia.type === 'photo' &&
mediaUpdate.type === 'encrypted_photo'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 3:27 AM (17 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2693355
Default Alt Text
D7295.diff (841 B)
Attached To
Mode
D7295: [lib][redux] Ability to update encrypted media messages
Attached
Detach File
Event Timeline
Log In to Comment