소스 검색

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

factor2
Mihaela Dumitru 6 달 전
부모
커밋
68b16d7bc8
No account linked to committer's email address
1개의 변경된 파일11개의 추가작업 그리고 10개의 파일을 삭제
  1. 11
    10
      react/features/recording/actions.any.ts

+ 11
- 10
react/features/recording/actions.any.ts 파일 보기

@@ -274,7 +274,6 @@ export function showStartedRecordingNotification(
274 274
             if (recordingSharingUrl
275 275
                 && isVpaasMeeting(state)
276 276
                 && iAmRecordingInitiator
277
-                && showRecordingLink
278 277
                 && !isSavingRecordingOnDropbox(state)) {
279 278
                 const region = getMeetingRegion(state);
280 279
                 const tenant = getVpaasTenant(state);
@@ -288,15 +287,17 @@ export function showStartedRecordingNotification(
288 287
                     }
289 288
 
290 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 301
                 } catch (err) {
301 302
                     dispatch(showErrorNotification({
302 303
                         titleKey: 'recording.errorFetchingLink'

Loading…
취소
저장