Browse Source

fix(config) hide ui label for the recording start notification and send event (#15385)

factor2
Mihaela Dumitru 6 months ago
parent
commit
68b16d7bc8
No account linked to committer's email address
1 changed files with 11 additions and 10 deletions
  1. 11
    10
      react/features/recording/actions.any.ts

+ 11
- 10
react/features/recording/actions.any.ts View File

274
             if (recordingSharingUrl
274
             if (recordingSharingUrl
275
                 && isVpaasMeeting(state)
275
                 && isVpaasMeeting(state)
276
                 && iAmRecordingInitiator
276
                 && iAmRecordingInitiator
277
-                && showRecordingLink
278
                 && !isSavingRecordingOnDropbox(state)) {
277
                 && !isSavingRecordingOnDropbox(state)) {
279
                 const region = getMeetingRegion(state);
278
                 const region = getMeetingRegion(state);
280
                 const tenant = getVpaasTenant(state);
279
                 const tenant = getVpaasTenant(state);
288
                     }
287
                     }
289
 
288
 
290
                     // add the option to copy recording link
289
                     // add the option to copy recording link
291
-                    notifyProps.dialogProps = {
292
-                        ...notifyProps.dialogProps,
293
-                        customActionNameKey: [ 'recording.copyLink' ],
294
-                        customActionHandler: [ () => copyText(link) ],
295
-                        titleKey: 'recording.on',
296
-                        descriptionKey: 'recording.linkGenerated'
297
-                    };
298
-
299
-                    notifyProps.type = NOTIFICATION_TIMEOUT_TYPE.STICKY;
290
+                    if (showRecordingLink) {
291
+                        notifyProps.dialogProps = {
292
+                            ...notifyProps.dialogProps,
293
+                            customActionNameKey: [ 'recording.copyLink' ],
294
+                            customActionHandler: [ () => copyText(link) ],
295
+                            titleKey: 'recording.on',
296
+                            descriptionKey: 'recording.linkGenerated'
297
+                        };
298
+
299
+                        notifyProps.type = NOTIFICATION_TIMEOUT_TYPE.STICKY;
300
+                    }
300
                 } catch (err) {
301
                 } catch (err) {
301
                     dispatch(showErrorNotification({
302
                     dispatch(showErrorNotification({
302
                         titleKey: 'recording.errorFetchingLink'
303
                         titleKey: 'recording.errorFetchingLink'

Loading…
Cancel
Save