Skip to content
Snippets Groups Projects
Unverified Commit 880ce8b0 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by GitHub
Browse files

regression: Fail to send file in e2ee rooms not ready (#32663)

parent a537b995
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ export const uploadFiles = async (chat: ChatAPI, files: readonly File[], resetFi
// encrypt attachment description
const e2eRoom = await e2e.getInstanceByRoomId(room._id);
if (!e2eRoom) {
if (!e2eRoom?.isReady()) {
uploadFile(file, { description });
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment