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

/unban broken #1860

Closed
Zenexer opened this issue Jan 29, 2017 · 1 comment
Closed

/unban broken #1860

Zenexer opened this issue Jan 29, 2017 · 1 comment

Comments

@Zenexer
Copy link

Zenexer commented Jan 29, 2017

Moved from matrix-org/matrix-js-sdk#341

/unban is broken on clients that use /rooms/{roomId}/state/leave to unban users instead of /rooms/{roomId}/unban. The user will receive the following error:

Cannot leave user who was banned

"Cannot %s user who was banned" % (action,),

The cause is this line: when using the old/alternative method of unbanning users, action will be "leave" instead of "unban".

However, fixing this without also updating the client(s) will result in the return of element-hq/element-web#1961, which is likely fixed at the moment. This is because the server will be unable to differentiate between /kick and /unban. matrix-js-sdk will need to be updated to use what I assume is the "new" API call.

@richvdh
Copy link
Member

richvdh commented Jan 7, 2019

I don't think this bug is valid any more. If it is, please open a new bug stating clearly how synapse doesn't match the spec.

@richvdh richvdh closed this as completed Jan 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants