Commit 9caf3bb0 authored by Prateek Jain's avatar Prateek Jain Committed by Diego Mello
Browse files

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

parent 16652241
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment