Skip to content

Conversation

@aaronraimist
Copy link
Contributor

@aaronraimist aaronraimist commented Jun 23, 2021

Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks, seems reasonable overall, but would be good to use the same checks in all power level paths.

Synapse enforces this but I guess it doesn't hurt to also check here

Signed-off-by: Aaron Raimist <[email protected]>
@aaronraimist
Copy link
Contributor Author

I'm not sure where else you want changed. As far as I can tell this is the only place Element uses the JS SDK to show a PL.

These string power levels aren't going to last a much longer anyway since I also made a PR to enforce integers in Synapse matrix-org/synapse#10232 so I don't think it's worth putting a whole lot more time in on the client side.

Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

That's all I had in mind, thanks. Just seems good to have similar checks all around.

@jryans jryans merged commit e3a00c2 into matrix-org:develop Jun 30, 2021
@aaronraimist aaronraimist deleted the string-pl branch June 30, 2021 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants