Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(file-sharing): Disable dragging on prejoin.

damenchoa77ac20db9f8
diff --git a/react/features/conference/components/web/Conference.tsx b/react/features/conference/components/web/Conference.tsx
index 6f2b6825da..b81adebdbf 100644
--- a/react/features/conference/components/web/Conference.tsx
+++ b/react/features/conference/components/web/Conference.tsx
@@ -483,6 +483,7 @@ export default reactReduxConnect(_mapStateToProps)(translate(props => {
const { isOpen: isChatOpen } = useSelector((state: IReduxState) => state['features/chat']);
const isFileUploadEnabled = useSelector(isFileUploadingEnabled);
+ const isOnPrejoin = useSelector(isPrejoinPageVisible);
const handleDragEnter = useCallback((e: React.DragEvent) => {
e.preventDefault();
@@ -500,7 +501,7 @@ export default reactReduxConnect(_mapStateToProps)(translate(props => {
e.preventDefault();
e.stopPropagation();
- if (!isFileUploadEnabled) {
+ if (!isFileUploadEnabled || isOnPrejoin) {
return;
}
@@ -510,7 +511,7 @@ export default reactReduxConnect(_mapStateToProps)(translate(props => {
}
dispatch(setFocusedTab(ChatTabs.FILE_SHARING));
}
- }, [ isChatOpen, isDragging, isFileUploadEnabled ]);
+ }, [ isChatOpen, isDragging, isFileUploadEnabled, isOnPrejoin ]);
const handleDrop = useCallback((e: React.DragEvent) => {
e.preventDefault();
diff --git a/resources/file-sharing.yaml b/resources/file-sharing.yaml
index 14ec573686..58c911f0bc 100644
--- a/resources/file-sharing.yaml
+++ b/resources/file-sharing.yaml
@@ -87,30 +87,6 @@ paths:
$ref: '#/components/schemas/AddDocumentResponse'
example:
fileId: e393a7e5-e790-4f43-836e-d27238201904
- delete:
- tags:
- - Document sharing history
- summary: Deletes documents for a given session, user and customer
- operationId: deleteDocumentsForSessionCustomerAndUser
- parameters:
- - name: sessionId
- in: path
- required: true
- schema:
- type: string
- - name: user-id
- in: query
- required: true
- schema:
- type: string
- - name: customer-id
- in: query
- required: true
- schema:
- type: string
- responses:
- '204':
- description: No Content
/v1/documents/sessions/{sessionId}/files/{fileId}:
get:
tags:
@@ -141,7 +117,7 @@ paths:
tags:
- Document sharing history
summary: Delete a file by sessionId and fileId
- description: Delete a file by sessionId and fileId allowed by all moderators
+ description: Delete a file by sessionId and fileId allowed by the "file-upload" feature
operationId: deleteFile
parameters:
- name: sessionId