From 5ed680e5ce23adf3e7fa24ec236192344e74b08a Mon Sep 17 00:00:00 2001 From: wmwragg Date: Mon, 5 Sep 2016 17:34:20 +0100 Subject: [PATCH] Picking the top of the queryList not _userList, as the queryList is the query filtered _userList --- src/components/views/dialogs/ChatInviteDialog.js | 4 ++-- src/components/views/elements/AddressTile.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/ChatInviteDialog.js b/src/components/views/dialogs/ChatInviteDialog.js index e704289259..92aeaf34eb 100644 --- a/src/components/views/dialogs/ChatInviteDialog.js +++ b/src/components/views/dialogs/ChatInviteDialog.js @@ -158,9 +158,9 @@ module.exports = React.createClass({ var query; if (this.state.addressSelected) { var AddressTile = sdk.getComponent("elements.AddressTile"); - // NOTE: _userList[0] is just a place holder until the selection logic is completed + // NOTE: this.state.queryList[0] is just a place holder until the selection logic is completed query = ( - + ); } else { query = ( diff --git a/src/components/views/elements/AddressTile.js b/src/components/views/elements/AddressTile.js index a8aa7fc173..c06de8fff9 100644 --- a/src/components/views/elements/AddressTile.js +++ b/src/components/views/elements/AddressTile.js @@ -37,6 +37,8 @@ module.exports = React.createClass({ }, render: function() { + console.log("### D E B U G - user:"); + console.log(this.props.user); var BaseAvatar = sdk.getComponent('avatars.BaseAvatar'); var TintableSvg = sdk.getComponent("elements.TintableSvg"); var name = this.props.user.displayName || this.props.user.userId