Update deepLinking.js
This commit is contained in:
parent
16e1b0d057
commit
2d9fc25050
|
@ -10,7 +10,7 @@ import database from '../lib/database';
|
||||||
import RocketChat from '../lib/rocketchat';
|
import RocketChat from '../lib/rocketchat';
|
||||||
import EventEmitter from '../utils/events';
|
import EventEmitter from '../utils/events';
|
||||||
import { appStart } from '../actions';
|
import { appStart } from '../actions';
|
||||||
import { isIOS } from '../utils/deviceInfo';
|
import { IDENTIFIER } from '../constants/credentials';
|
||||||
|
|
||||||
const roomTypes = {
|
const roomTypes = {
|
||||||
channel: 'c', direct: 'd', group: 'p'
|
channel: 'c', direct: 'd', group: 'p'
|
||||||
|
@ -33,9 +33,7 @@ const handleOpen = function* handleOpen({ params }) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isIOS) {
|
yield RNUserDefaults.setName(IDENTIFIER);
|
||||||
yield RNUserDefaults.setName('group.ios.chat.rocket');
|
|
||||||
}
|
|
||||||
|
|
||||||
let { host } = params;
|
let { host } = params;
|
||||||
if (!/^(http|https)/.test(host)) {
|
if (!/^(http|https)/.test(host)) {
|
||||||
|
|
Loading…
Reference in New Issue