瀏覽代碼

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

master
Lyubo Marinov 7 年之前
父節點
當前提交
5a5f6816c6
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4
    5
      react/features/room-lock/components/PasswordRequiredPrompt.native.js

+ 4
- 5
react/features/room-lock/components/PasswordRequiredPrompt.native.js 查看文件

@@ -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…
取消
儲存