瀏覽代碼

fix(invite): prefix a + when faking the validation response (#2597)

Pre-existing logic made it so numbers were assumed as valid
if no validation url was specified. To be consistent with
the validation server, the faked number should include a
+ at the beginning.
j8
virtuacoplenny 7 年之前
父節點
當前提交
e325199075
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      react/features/invite/functions.js

+ 1
- 1
react/features/invite/functions.js 查看文件

100
         // no auth url, let's say it is valid
100
         // no auth url, let's say it is valid
101
         const response = {
101
         const response = {
102
             allow: true,
102
             allow: true,
103
-            phone: dialNumber
103
+            phone: `+${dialNumber}`
104
         };
104
         };
105
 
105
 
106
         return Promise.resolve(response);
106
         return Promise.resolve(response);

Loading…
取消
儲存