replace getMember(myId).membership with getMyMembership
This works with rooms which haven't had their members loaded yet.
This commit is contained in:
parent
b9bbb7ee16
commit
908de56c6d
6 changed files with 15 additions and 17 deletions
|
@ -759,7 +759,8 @@ module.exports = React.createClass({
|
|||
|
||||
_updateDMState() {
|
||||
const me = this.state.room.getMember(MatrixClientPeg.get().getUserId());
|
||||
if (!me || me.membership !== "join") {
|
||||
const room = this.state.room;
|
||||
if (room.getMyMembership() != "join") {
|
||||
return;
|
||||
}
|
||||
const roomId = this.state.room.roomId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue