[FIX] Go to direct message from members list (#1519)

This commit is contained in:
Prateek Jain 2020-01-07 23:01:37 +05:30 committed by Diego Mello
parent 16652241a8
commit 9caf3bb016
1 changed files with 1 additions and 1 deletions

View File

@ -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 {