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

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