Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!32Android changes,!31Ios changes
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment