Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Make ban either ban or unban #696

Merged
merged 6 commits into from
Feb 14, 2017
Merged

Make ban either ban or unban #696

merged 6 commits into from
Feb 14, 2017

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Feb 14, 2017

depending on whether the user is banned already

Mostly gives some feedback that the ban has actually taken effect.

Includes #694 so either merge that first & merge in, or just look at the last commit.

Add a specific dialog used for confirming member actions.

Also remove onFinished from MemberInfo which did absolutely
nothing.
depending on whether the user is banned already

Mostly gives some feedback that the ban has actually taken effect.
Copy link
Contributor

@lukebarnard1 lukebarnard1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from a rename

).then(
let promise;
if (this.props.member.membership == 'ban') {
promise = this.props.matrixClient.unban(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onBan should probably have a different name given that it might unban someone

@@ -481,22 +489,22 @@ module.exports = WithMatrixClient(React.createClass({
},

_calculateCanPermissions: function(me, them, powerLevels) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/me wishes this or something more generic for figuring out the client's abilities was pushed way further down the stack, potentially to the js-sdk

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed this should definitely be in the js-sdk. Trying to put some limit on the depth of this rabbit hole traversal though.

@lukebarnard1 lukebarnard1 assigned dbkr and unassigned lukebarnard1 Feb 14, 2017
@dbkr
Copy link
Member Author

dbkr commented Feb 14, 2017

ptal

@dbkr dbkr assigned lukebarnard1 and unassigned dbkr Feb 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants