mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
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) {
|
||||
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") {
|
||||
|
|
Loading…
Reference in a new issue