[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 room = await subCollection.find(rid);
this.setState({ room });
if (!this.tmid) {
navigation.setParams({
name: this.getRoomTitle(room),
avatar: room.name,
t: room.t
});
}
this.observeRoom(room);
} catch (error) {
if (this.t !== 'd') {