Merge branch 'master' of github.com:rodrigok/Rocket.Chat.RN
This commit is contained in:
commit
613061312f
|
@ -8,8 +8,6 @@ export function connect(cb) {
|
||||||
const currentServer = realm.objects('servers').filtered('current = true')[0];
|
const currentServer = realm.objects('servers').filtered('current = true')[0];
|
||||||
const url = `${ currentServer.id }/websocket`;
|
const url = `${ currentServer.id }/websocket`;
|
||||||
|
|
||||||
console.log('CONNECTING TO', url);
|
|
||||||
|
|
||||||
Meteor.connect(url);
|
Meteor.connect(url);
|
||||||
|
|
||||||
Meteor.ddp.on('connected', () => {
|
Meteor.ddp.on('connected', () => {
|
||||||
|
@ -83,7 +81,6 @@ export function loadMessagesForRoom(rid) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
realm.write(() => {
|
realm.write(() => {
|
||||||
data.messages.forEach((message) => {
|
data.messages.forEach((message) => {
|
||||||
|
|
Loading…
Reference in New Issue