[FIX] Set UserDefaults AppGroup on notification tap (#1047)
This commit is contained in:
parent
a0a109ec54
commit
ba217ca5ff
|
@ -11,6 +11,7 @@ import database from '../lib/realm';
|
|||
import RocketChat from '../lib/rocketchat';
|
||||
import EventEmitter from '../utils/events';
|
||||
import { appStart } from '../actions';
|
||||
import { isIOS } from '../utils/deviceInfo';
|
||||
|
||||
const roomTypes = {
|
||||
channel: 'c', direct: 'd', group: 'p'
|
||||
|
@ -33,6 +34,10 @@ const handleOpen = function* handleOpen({ params }) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (isIOS) {
|
||||
yield RNUserDefaults.setName('group.ios.chat.rocket');
|
||||
}
|
||||
|
||||
let { host } = params;
|
||||
if (!/^(http|https)/.test(host)) {
|
||||
host = `https://${ params.host }`;
|
||||
|
|
Loading…
Reference in New Issue