Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3178060
D13890.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13890.diff
View Options
diff --git a/native/input/input-state-container.react.js b/native/input/input-state-container.react.js
--- a/native/input/input-state-container.react.js
+++ b/native/input/input-state-container.react.js
@@ -22,7 +22,6 @@
uploadMultimedia,
useBlobServiceUpload,
} from 'lib/actions/upload-actions.js';
-import commStaffCommunity from 'lib/facts/comm-staff-community.js';
import {
type SendMultimediaMessagePayload,
useInputStateContainerSendMultimediaMessage,
@@ -53,7 +52,6 @@
import { createRealThreadFromPendingThread } from 'lib/shared/thread-actions-utils.js';
import {
patchThreadInfoToIncludeMentionedMembersOfParent,
- threadInfoInsideCommunity,
threadIsPending,
threadIsPendingSidebar,
} from 'lib/shared/thread-utils.js';
@@ -632,11 +630,9 @@
}
}
+ // eslint-disable-next-line no-unused-vars
shouldEncryptMedia(threadInfo: ThreadInfo): boolean {
- return (
- threadTypeIsThick(threadInfo.type) ||
- threadInfoInsideCommunity(threadInfo, commStaffCommunity.id)
- );
+ return true;
}
sendMultimediaMessage = async (
diff --git a/web/input/input-state-container.react.js b/web/input/input-state-container.react.js
--- a/web/input/input-state-container.react.js
+++ b/web/input/input-state-container.react.js
@@ -32,7 +32,6 @@
useModalContext,
} from 'lib/components/modal-provider.react.js';
import blobService from 'lib/facts/blob-service.js';
-import commStaffCommunity from 'lib/facts/comm-staff-community.js';
import {
type SendMultimediaMessagePayload,
useInputStateContainerSendMultimediaMessage,
@@ -55,7 +54,6 @@
import {
draftKeyFromThreadID,
patchThreadInfoToIncludeMentionedMembersOfParent,
- threadInfoInsideCommunity,
threadIsPending,
threadIsPendingSidebar,
} from 'lib/shared/thread-utils.js';
@@ -448,11 +446,9 @@
return rawMessageInfo;
}
+ // eslint-disable-next-line no-unused-vars
shouldEncryptMedia(threadInfo: ThreadInfo): boolean {
- return (
- threadTypeIsThick(threadInfo.type) ||
- threadInfoInsideCommunity(threadInfo, commStaffCommunity.id)
- );
+ return true;
}
async sendMultimediaMessage(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 12:50 AM (17 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2439461
Default Alt Text
D13890.diff (2 KB)
Attached To
Mode
D13890: [native][web] Stop limiting media encryption to staff community
Attached
Detach File
Event Timeline
Log In to Comment