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); const cancel = this.ddp.once('disconnected', reject);
this.ddp.once(id, (data) => { this.ddp.once(id, (data) => {
// console.log(data); // console.log(data);
this.lastping = new Date();
this.ddp.removeListener(id, cancel); this.ddp.removeListener(id, cancel);
return (data.error ? reject(data.error) : resolve({ id, ...data })); return (data.error ? reject(data.error) : resolve({ id, ...data }));
}); });

View File

@ -21,7 +21,7 @@ export default async function() {
InteractionManager.runAfterInteractions(() => InteractionManager.runAfterInteractions(() =>
database.write(() => database.write(() =>
filteredSettings.forEach(setting => database.create('settings', setting, true)))); filteredSettings.forEach(setting => database.create('settings', setting, true))));
reduxStore.dispatch(actions.addSettings(this.parseSettings(filteredSettings))); reduxStore.dispatch(actions.addSettings(this.parseSettings(filteredSettings)));
} catch (e) { } catch (e) {
log('getSettings', e); log('getSettings', e);
} }

View File

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