-
-
Notifications
You must be signed in to change notification settings - Fork 834
Conversation
Show feedback if you enter a valid but unknown email address or mxid Fixes element-hq/element-web#2933
Actually, hold off on reviewing, I want to change the props of AddressSelector again |
Rather than just passing in a list of strings. This paves the way for passing in display names & avatars of looked-up threepids.
OK, ready now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks nice, modulo a couple of questions
queryList = this._userList.filter((user) => { | ||
return this._matches(query, user); | ||
}).map((user) => { | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be helpful to record the structure of the objects in queryList
and inviteList
somewhere (in getInitialState
?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see you already have that in InviteAddressType. Could you point to it somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
address: addressText, | ||
isKnown: false, | ||
}; | ||
if (addrType == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we be bailing out here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, done
var React = require("react"); | ||
var sdk = require("../../../index"); | ||
var classNames = require('classnames'); | ||
const React = require("react"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you're going to rewrite these (which I applaud), can you switch to import
instead of require
?
const React = require("react"); | ||
const sdk = require("../../../index"); | ||
const classNames = require('classnames'); | ||
const InviteAddressType = require("./AddressTile"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks dodge - the default export of AddressTile is the react component, not InviteAddressType.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
and rewrite to import while we're at it
ok, ptal |
hrm, sorry, could we specify the structure of the objects in LGTM otherwise |
Show feedback if you enter a valid but unknown email address
or mxid
Also removes the network indicator, which in practice was always an 'R' since there was only one network.
Fixes element-hq/element-web#2933
Fixes element-hq/element-web#2934