浏览代码

[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
 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;

正在加载...
取消
保存