Parcourir la source

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 il y a 7 ans
Parent
révision
e325199075
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      react/features/invite/functions.js

+ 1
- 1
react/features/invite/functions.js Voir le fichier

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

Chargement…
Annuler
Enregistrer