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
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
6
 
6
 
7
+import { appNavigate } from '../../app';
7
 import { setPassword } from '../../base/conference';
8
 import { setPassword } from '../../base/conference';
8
 import { Dialog } from '../../base/dialog';
9
 import { Dialog } from '../../base/dialog';
9
 
10
 
86
      * otherwise, {@code false}.
87
      * otherwise, {@code false}.
87
      */
88
      */
88
     _onCancel() {
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
     _onSubmit: (?string) => boolean;
95
     _onSubmit: (?string) => boolean;

Loading…
Cancel
Save