Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32519026
D7339.1767128039.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7339.1767128039.diff
View Options
diff --git a/lib/shared/messages/multimedia-message-spec.js b/lib/shared/messages/multimedia-message-spec.js
--- a/lib/shared/messages/multimedia-message-spec.js
+++ b/lib/shared/messages/multimedia-message-spec.js
@@ -256,8 +256,12 @@
};
} else if (unwrapped.type === messageTypes.MULTIMEDIA) {
for (const { type } of unwrapped.media) {
- // TODO: add encrypted_photo and encrypted_video here when supported
- if (type !== 'photo' && type !== 'video') {
+ if (
+ type !== 'photo' &&
+ type !== 'video' &&
+ type !== 'encrypted_photo' &&
+ type !== 'encrypted_video'
+ ) {
return messageInfo;
}
}
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -390,6 +390,7 @@
const { threadIDsToNotifIDs, ...stateSansThreadIDsToNotifIDs } = state;
return stateSansThreadIDsToNotifIDs;
},
+ [35]: (state: AppState) => unshimClientDB(state, [messageTypes.MULTIMEDIA]),
};
// After migration 31, we'll no longer want to persist `messageStore.messages`
@@ -470,7 +471,7 @@
'storeLoaded',
],
debug: __DEV__,
- version: 34,
+ version: 35,
transforms: [messageStoreMessagesBlocklistTransform],
migrate: (createMigrate(migrations, { debug: __DEV__ }): any),
timeout: ((__DEV__ ? 0 : undefined): number | void),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 8:53 PM (8 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5869926
Default Alt Text
D7339.1767128039.diff (1 KB)
Attached To
Mode
D7339: [native][lib] Add code to unshim encrypted media
Attached
Detach File
Event Timeline
Log In to Comment