Page MenuHomePhabricator

D7295.diff
No OneTemporary

D7295.diff

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

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)

Event Timeline