[FIX] Thread header (#1776)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-02-28 14:39:17 -03:00 committed by GitHub
parent e0d4230272
commit 346d97bdc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -365,11 +365,13 @@ class RoomView extends React.Component {
const subCollection = await db.collections.get('subscriptions'); const subCollection = await db.collections.get('subscriptions');
const room = await subCollection.find(rid); const room = await subCollection.find(rid);
this.setState({ room }); this.setState({ room });
navigation.setParams({ if (!this.tmid) {
name: this.getRoomTitle(room), navigation.setParams({
avatar: room.name, name: this.getRoomTitle(room),
t: room.t avatar: room.name,
}); t: room.t
});
}
this.observeRoom(room); this.observeRoom(room);
} catch (error) { } catch (error) {
if (this.t !== 'd') { if (this.t !== 'd') {