Skip to content

Commit

Permalink
[FIX] Set UserDefaults AppGroup on notification tap (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello authored Jul 12, 2019
1 parent a0a109e commit ba217ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/sagas/deepLinking.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 }`;
Expand Down

0 comments on commit ba217ca

Please sign in to comment.