This commit is contained in:
Diego Mello 2018-05-18 15:32:15 -03:00
parent 2b172b359e
commit 49215cc4bd
3 changed files with 3 additions and 2 deletions

View File

@ -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 }));
});

View File

@ -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);
}

View File

@ -185,7 +185,7 @@ export default class RoomInfoView extends LoggedView {
<ScrollView style={styles.container}>
<View style={styles.avatarContainer}>
{this.renderAvatar(room, roomUser)}
<Text style={styles.roomTitle}>{ this.getRoomTitle(room) }</Text>
<Text style={styles.roomTitle}>{ getRoomTitle(room) }</Text>
</View>
{!this.isDirect() && this.renderItem('description', room)}
{!this.isDirect() && this.renderItem('topic', room)}