-
-
Notifications
You must be signed in to change notification settings - Fork 830
Add a button to un-ban users in RoomSettings #698
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple of nits
@@ -102,6 +147,8 @@ module.exports = React.createClass({ | |||
componentWillUnmount: function() { | |||
ScalarMessaging.stopListening(); | |||
|
|||
MatrixClientPeg.get().removeListener("RoomMember.membership", this._onRoomMemberMembership); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a null-guard to handle logout
or better yet, use the matrixclient from the react context rather than MatrixClientPeg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -35,6 +36,47 @@ function parseIntWithDefault(val, def) { | |||
return isNaN(res) ? def : res; | |||
} | |||
|
|||
const BannedUser = React.createClass({ | |||
propTypes: { | |||
member: React.PropTypes.string.isRequired, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's a string, why are you accessing its roomId
and userId
properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Addresses PR feedback without breaking RoomSettings
element-hq/element-web#3091
Requires element-hq/element-web#3227