Use better variable names
This commit is contained in:
parent
f384aa7d9e
commit
370310bf82
2 changed files with 7 additions and 8 deletions
|
@ -187,22 +187,21 @@ module.exports = {
|
|||
},
|
||||
|
||||
_updateConfCallNotification: function() {
|
||||
var member = MatrixClientPeg.get().getRoom(this.props.roomId).getMember(
|
||||
var confMember = MatrixClientPeg.get().getRoom(this.props.roomId).getMember(
|
||||
ConferenceHandler.getConferenceUserIdForRoom(this.props.roomId)
|
||||
);
|
||||
|
||||
if (!member) {
|
||||
if (!confMember) {
|
||||
return;
|
||||
}
|
||||
console.log("_updateConfCallNotification");
|
||||
var confCall = CallHandler.getConferenceCall(member.roomId);
|
||||
var confCall = CallHandler.getConferenceCall(confMember.roomId);
|
||||
|
||||
// A conf call notification should be displayed if there is an ongoing
|
||||
// conf call but this cilent isn't a part of it.
|
||||
this.setState({
|
||||
displayConfCallNotification: (
|
||||
(!confCall || confCall.call_state === "ended") &&
|
||||
member.membership === "join"
|
||||
confMember.membership === "join"
|
||||
)
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue