Skip to content

Commit a173e33

Browse files
authored
regression: Fix encrypted file upload ignoring enabling setting (#32670)
1 parent 326bd01 commit a173e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/meteor/client/lib/chats/flows/uploadFiles.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ export const uploadFiles = async (chat: ChatAPI, files: readonly File[], resetFi
9090
// encrypt attachment description
9191
const e2eRoom = await e2e.getInstanceByRoomId(room._id);
9292

93-
if (!e2eRoom?.isReady()) {
93+
if (!e2eRoom) {
9494
uploadFile(file, { description });
9595
return;
9696
}
9797

98-
const shouldConvertSentMessages = e2eRoom.shouldConvertSentMessages({ msg });
98+
const shouldConvertSentMessages = await e2eRoom.shouldConvertSentMessages({ msg });
9999

100100
if (!shouldConvertSentMessages) {
101101
uploadFile(file, { description });

0 commit comments

Comments
 (0)