You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-28 09:24:05 +03:00
replace getMember(myId).membership with getMyMembership
This works with rooms which haven't had their members loaded yet.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user