mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
explicitly check join status as it's clearer
This commit is contained in:
parent
baba500150
commit
9bf8f37e5f
1 changed files with 2 additions and 2 deletions
|
@ -715,8 +715,8 @@ module.exports = React.createClass({
|
|||
// it doesn't behave quite as desired here (we want an input field here rather than
|
||||
// content-editable, and we want a default).
|
||||
if (cli.getRooms().filter((r) => {
|
||||
return !!r.getMember(cli.credentials.userId);
|
||||
}).length == 0) {
|
||||
return r.hasMembershipState(cli.credentials.userId, "join");
|
||||
})) {
|
||||
display_name_promise = cli.getProfileInfo(cli.credentials.userId).then((result) => {
|
||||
if (!result.displayname) {
|
||||
var SetDisplayNameDialog = sdk.getComponent('views.dialogs.SetDisplayNameDialog');
|
||||
|
|
Loading…
Reference in a new issue