You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
explicitly check join status as it's clearer
This commit is contained in:
@ -715,8 +715,8 @@ module.exports = React.createClass({
|
|||||||
// it doesn't behave quite as desired here (we want an input field here rather than
|
// it doesn't behave quite as desired here (we want an input field here rather than
|
||||||
// content-editable, and we want a default).
|
// content-editable, and we want a default).
|
||||||
if (cli.getRooms().filter((r) => {
|
if (cli.getRooms().filter((r) => {
|
||||||
return !!r.getMember(cli.credentials.userId);
|
return r.hasMembershipState(cli.credentials.userId, "join");
|
||||||
}).length == 0) {
|
})) {
|
||||||
display_name_promise = cli.getProfileInfo(cli.credentials.userId).then((result) => {
|
display_name_promise = cli.getProfileInfo(cli.credentials.userId).then((result) => {
|
||||||
if (!result.displayname) {
|
if (!result.displayname) {
|
||||||
var SetDisplayNameDialog = sdk.getComponent('views.dialogs.SetDisplayNameDialog');
|
var SetDisplayNameDialog = sdk.getComponent('views.dialogs.SetDisplayNameDialog');
|
||||||
|
Reference in New Issue
Block a user