Browse Source

[RN] Leave Conference on room-lock "Password required" cancellation

master
Lyubo Marinov 7 years ago
parent
commit
5a5f6816c6

+ 4
- 5
react/features/room-lock/components/PasswordRequiredPrompt.native.js View File

@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
4 4
 import React, { Component } from 'react';
5 5
 import { connect } from 'react-redux';
6 6
 
7
+import { appNavigate } from '../../app';
7 8
 import { setPassword } from '../../base/conference';
8 9
 import { Dialog } from '../../base/dialog';
9 10
 
@@ -86,11 +87,9 @@ class PasswordRequiredPrompt extends Component {
86 87
      * otherwise, {@code false}.
87 88
      */
88 89
     _onCancel() {
89
-        // XXX The user has canceled this prompt for a password so we are to
90
-        // attempt joining the conference without a password. If the conference
91
-        // still requires a password to join, the user will be prompted again
92
-        // later.
93
-        return this._onSubmit(undefined);
90
+        this.props.dispatch(appNavigate(undefined));
91
+
92
+        return true;
94 93
     }
95 94
 
96 95
     _onSubmit: (?string) => boolean;

Loading…
Cancel
Save