diff --git a/app/lib/ddp.js b/app/lib/ddp.js index 7da3d98e..305382e8 100644 --- a/app/lib/ddp.js +++ b/app/lib/ddp.js @@ -176,6 +176,7 @@ export default class Socket extends EventEmitter { const cancel = this.ddp.once('disconnected', reject); this.ddp.once(id, (data) => { // console.log(data); + this.lastping = new Date(); this.ddp.removeListener(id, cancel); return (data.error ? reject(data.error) : resolve({ id, ...data })); }); diff --git a/app/lib/methods/getSettings.js b/app/lib/methods/getSettings.js index 9f671c6d..63ed4bd8 100644 --- a/app/lib/methods/getSettings.js +++ b/app/lib/methods/getSettings.js @@ -21,7 +21,7 @@ export default async function() { InteractionManager.runAfterInteractions(() => database.write(() => filteredSettings.forEach(setting => database.create('settings', setting, true)))); - reduxStore.dispatch(actions.addSettings(this.parseSettings(filteredSettings))); + reduxStore.dispatch(actions.addSettings(this.parseSettings(filteredSettings))); } catch (e) { log('getSettings', e); } diff --git a/app/views/RoomInfoView/index.js b/app/views/RoomInfoView/index.js index ab675a96..6ff39d9e 100644 --- a/app/views/RoomInfoView/index.js +++ b/app/views/RoomInfoView/index.js @@ -185,7 +185,7 @@ export default class RoomInfoView extends LoggedView { {this.renderAvatar(room, roomUser)} - { this.getRoomTitle(room) } + { getRoomTitle(room) } {!this.isDirect() && this.renderItem('description', room)} {!this.isDirect() && this.renderItem('topic', room)}