remove unneeded async keywords

This commit is contained in:
Bruno Windels 2018-09-14 13:55:47 +02:00
parent fe734b944e
commit 27c496aecb

View file

@ -168,7 +168,7 @@ module.exports = React.createClass({
}
},
onRoom: async function(room) {
onRoom: function(room) {
if (room.roomId !== this.props.roomId) {
return;
}
@ -182,7 +182,7 @@ module.exports = React.createClass({
this._loadMembersIfNeeded();
},
onRoomMembership: async function(ev, member, oldMembership) {
onRoomMembership: function(ev, member, oldMembership) {
const cli = MatrixClientPeg.get();
const myId = cli.getUserId();
if (member.userId === myId && oldMembership !== "join" && member.membership === "join") {