From ba217ca5ff13eb61e1fcda4f3bf28901e6870baa Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 12 Jul 2019 10:44:31 -0300 Subject: [PATCH] [FIX] Set UserDefaults AppGroup on notification tap (#1047) --- app/sagas/deepLinking.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/sagas/deepLinking.js b/app/sagas/deepLinking.js index 04eccfca9..892731602 100644 --- a/app/sagas/deepLinking.js +++ b/app/sagas/deepLinking.js @@ -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 }`;