fix(recording) fix recording suggestion not being shown in some cases (#14333)

Initial implementation did not account for cases where participants become moderators
This commit is contained in:
Avram Tudor
2024-02-07 15:36:43 +02:00
committed by GitHub
parent d5ee7f3069
commit 9f25726706
5 changed files with 56 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import {
SET_MEETING_HIGHLIGHT_BUTTON_STATE,
SET_PENDING_RECORDING_NOTIFICATION_UID,
SET_SELECTED_RECORDING_SERVICE,
SET_START_RECORDING_NOTIFICATION_SHOWN,
SET_STREAM_KEY
} from './actionTypes';
@@ -35,6 +36,7 @@ export interface IRecordingState {
selectedRecordingService: string;
sessionDatas: Array<ISessionData>;
streamKey?: string;
wasStartRecordingSuggested?: boolean;
}
/**
@@ -94,6 +96,12 @@ ReducerRegistry.register<IRecordingState>(STORE_NAME,
disableHighlightMeetingMoment: action.disabled
};
case SET_START_RECORDING_NOTIFICATION_SHOWN:
return {
...state,
wasStartRecordingSuggested: true
};
default:
return state;
}