Skip to content

Commit

Permalink
[FIX] Thread header (#1776)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Mello <diegolmello@gmail.com>
  • Loading branch information
djorkaeffalexandre and diegolmello committed Feb 28, 2020
1 parent e0d4230 commit 346d97b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/views/RoomView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
navigation.setParams({
name: this.getRoomTitle(room),
avatar: room.name,
t: room.t
});
if (!this.tmid) {
navigation.setParams({
name: this.getRoomTitle(room),
avatar: room.name,
t: room.t
});
}
this.observeRoom(room);
} catch (error) {
if (this.t !== 'd') {
Expand Down

0 comments on commit 346d97b

Please sign in to comment.