|
@@ -8,16 +8,16 @@ import { toState } from '../redux';
|
8
|
8
|
*
|
9
|
9
|
* @param {Function|Object} stateOrGetState - The redux state or redux's
|
10
|
10
|
* {@code getState} function.
|
11
|
|
- * @returns {string|undefined}
|
|
11
|
+ * @returns {string}
|
12
|
12
|
*/
|
13
|
|
-export function getInviteURL(stateOrGetState: Function | Object): ?string {
|
|
13
|
+export function getInviteURL(stateOrGetState: Function | Object): string {
|
14
|
14
|
const state = toState(stateOrGetState);
|
15
|
15
|
const locationURL
|
16
|
16
|
= state instanceof URL
|
17
|
17
|
? state
|
18
|
18
|
: state['features/base/connection'].locationURL;
|
19
|
19
|
|
20
|
|
- return locationURL ? getURLWithoutParams(locationURL).href : undefined;
|
|
20
|
+ return getURLWithoutParams(locationURL).href;
|
21
|
21
|
}
|
22
|
22
|
|
23
|
23
|
/**
|