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(rn,recording) fix recording dialog state not updating

Saúl Ibarra Corretgédc96324d3b68
diff --git a/react/features/recording/components/Recording/native/StartRecordingDialog.js b/react/features/recording/components/Recording/native/StartRecordingDialog.js
index 79eba0bf4a..dcfbe2c5ee 100644
--- a/react/features/recording/components/Recording/native/StartRecordingDialog.js
+++ b/react/features/recording/components/Recording/native/StartRecordingDialog.js
@@ -44,6 +44,8 @@ class StartRecordingDialog extends AbstractStartRecordingDialog<Props> {
* @returns {void}
*/
componentDidMount() {
+ super.componentDidMount();
+
const { navigation, t } = this.props;
navigation.setOptions({
@@ -64,7 +66,9 @@ class StartRecordingDialog extends AbstractStartRecordingDialog<Props> {
* @inheritdoc
* @returns {void}
*/
- componentDidUpdate() {
+ componentDidUpdate(prevProps) {
+ super.componentDidUpdate(prevProps);
+
const { navigation, t } = this.props;
navigation.setOptions({