Use credentials.js instead of native.js

This commit is contained in:
Filipe Brito 2019-08-22 14:53:57 -03:00
parent 5be22d88d6
commit e3a66d92ba
4 changed files with 3 additions and 3 deletions

View File

@ -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';

View File

@ -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() {

View File

@ -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 {