[FIX] Thread header (#1776)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
e0d4230272
commit
346d97bdc8
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue