Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(accessibility) show upload successful notification (#16309)
Mihaela Dumitruc3e1c9d568a3
diff --git a/lang/main.json b/lang/main.jsonindex f238dba2a9..3057347361 100644--- a/lang/main.json+++ b/lang/main.json@@ -570,6 +570,7 @@"fileAlreadyUploaded": "File has already been uploaded to this meeting.","fileTooLargeDescription": "Please make sure the file does not exceed {{ maxFileSize }}.","fileTooLargeTitle": "The selected file is too large",+ "fileUploadedSuccessfully": "File uploaded successfully","removeFile": "Remove","uploadFailedDescription": "Please try again.","uploadFailedTitle": "Upload failed",diff --git a/react/features/file-sharing/middleware.web.ts b/react/features/file-sharing/middleware.web.tsindex 9732479bdb..25ab147571 100644--- a/react/features/file-sharing/middleware.web.ts+++ b/react/features/file-sharing/middleware.web.ts@@ -6,7 +6,7 @@ import { JitsiConferenceEvents } from '../base/lib-jitsi-meet';import { getLocalParticipant, getParticipantDisplayName } from '../base/participants/functions';import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';import StateListenerRegistry from '../base/redux/StateListenerRegistry';-import { showErrorNotification } from '../notifications/actions';+import { showErrorNotification, showSuccessNotification } from '../notifications/actions';import { NOTIFICATION_TIMEOUT_TYPE, NOTIFICATION_TYPE } from '../notifications/constants';import { DOWNLOAD_FILE, REMOVE_FILE, UPLOAD_FILES, _FILE_LIST_RECEIVED, _FILE_REMOVED } from './actionTypes';@@ -229,6 +229,9 @@ function uploadFile(file: File, store: IStore, token: string): void {const fileSharingHandler = conference?.getFileSharing();fileSharingHandler.addFile(fileMetadata);+ store.dispatch(showSuccessNotification({+ titleKey: 'fileSharing.fileUploadedSuccessfully'+ }, NOTIFICATION_TIMEOUT_TYPE.SHORT));} else {handleError();}