Page MenuHomePhabricator

D13890.id.diff
No OneTemporary

D13890.id.diff

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

Mime Type
text/plain
Expires
Fri, Nov 8, 3:51 AM (3 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2439461
Default Alt Text
D13890.id.diff (2 KB)

Event Timeline