[FIX] Go to direct message from members list (#1519)
This commit is contained in:
parent
16652241a8
commit
9caf3bb016
|
@ -119,7 +119,7 @@ class RoomMembersView extends React.Component {
|
|||
const db = database.active;
|
||||
const subsCollection = db.collections.get('subscriptions');
|
||||
const query = await subsCollection.query(Q.where('name', item.username)).fetch();
|
||||
if (query) {
|
||||
if (query.length) {
|
||||
const [room] = query;
|
||||
this.goRoom({ rid: room.rid, name: item.username, room });
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue