remove unneeded async keywords
This commit is contained in:
parent
fe734b944e
commit
27c496aecb
1 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoom: async function(room) {
|
onRoom: function(room) {
|
||||||
if (room.roomId !== this.props.roomId) {
|
if (room.roomId !== this.props.roomId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ module.exports = React.createClass({
|
||||||
this._loadMembersIfNeeded();
|
this._loadMembersIfNeeded();
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomMembership: async function(ev, member, oldMembership) {
|
onRoomMembership: function(ev, member, oldMembership) {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
const myId = cli.getUserId();
|
const myId = cli.getUserId();
|
||||||
if (member.userId === myId && oldMembership !== "join" && member.membership === "join") {
|
if (member.userId === myId && oldMembership !== "join" && member.membership === "join") {
|
||||||
|
|
Loading…
Reference in a new issue