Page MenuHomePhabricator

D13890.id45695.diff
No OneTemporary

D13890.id45695.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
Mon, Nov 25, 3:21 AM (19 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578150
Default Alt Text
D13890.id45695.diff (2 KB)

Event Timeline