From e3a66d92bab42754dc257555812f218121aa92d0 Mon Sep 17 00:00:00 2001 From: Filipe Brito Date: Thu, 22 Aug 2019 14:53:57 -0300 Subject: [PATCH] Use credentials.js instead of native.js --- app/constants/{native.js => credentials.js} | 0 app/lib/rocketchat.js | 2 +- app/sagas/init.js | 2 +- app/sagas/selectServer.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename app/constants/{native.js => credentials.js} (100%) diff --git a/app/constants/native.js b/app/constants/credentials.js similarity index 100% rename from app/constants/native.js rename to app/constants/credentials.js diff --git a/app/lib/rocketchat.js b/app/lib/rocketchat.js index ce6d2e78f..da3e7153c 100644 --- a/app/lib/rocketchat.js +++ b/app/lib/rocketchat.js @@ -40,7 +40,7 @@ import sendMessage, { getMessage, sendMessageCall } from './methods/sendMessage' import { sendFileMessage, cancelUpload, isUploadActive } from './methods/sendFileMessage'; import { getDeviceToken } from '../notifications/push'; -import { SERVERS, SERVER_URL } from '../constants/native'; +import { SERVERS, SERVER_URL } from '../constants/credentials'; const TOKEN_KEY = 'reactnativemeteor_usertoken'; const SORT_PREFS_KEY = 'RC_SORT_PREFS_KEY'; diff --git a/app/sagas/init.js b/app/sagas/init.js index 06b2f8acc..35f025e13 100644 --- a/app/sagas/init.js +++ b/app/sagas/init.js @@ -14,7 +14,7 @@ import Navigation from '../lib/Navigation'; import database from '../lib/realm'; import { SERVERS, SERVER_ICON, SERVER_NAME, SERVER_URL, TOKEN, USER_ID -} from '../constants/native'; +} from '../constants/credentials'; import { isIOS } from '../utils/deviceInfo'; const restore = function* restore() { diff --git a/app/sagas/selectServer.js b/app/sagas/selectServer.js index ff59b90de..b9f6f1d8b 100644 --- a/app/sagas/selectServer.js +++ b/app/sagas/selectServer.js @@ -15,7 +15,7 @@ import RocketChat from '../lib/rocketchat'; import database from '../lib/realm'; import log from '../utils/log'; import I18n from '../i18n'; -import { SERVERS, TOKEN, SERVER_URL } from '../constants/native'; +import { SERVERS, TOKEN, SERVER_URL } from '../constants/credentials'; const getServerInfo = function* getServerInfo({ server, raiseError = true }) { try {