Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for matrix -> signal power level changes #260

Merged
merged 7 commits into from
Jun 4, 2022

Conversation

maltee1
Copy link
Contributor

@maltee1 maltee1 commented May 22, 2022

make Signal role ADMINISTRATOR if power level >= 50
make Signal role DEFAULT if power level <50
bridge invite and state_default upon explicit changes

works for group creation, invites or explicit power level changes

@sumnerevans sumnerevans requested a review from tulir May 23, 2022 01:01
@maltee1
Copy link
Contributor Author

maltee1 commented May 23, 2022

I'm catching exceptions separately for each user and the permissions. I'm thinking whether that's useful, because any exception that will occur for one of the requests will likely occur for the other requests as well. So putting a try/catch block around the entire function might make sense.

mautrix_signal/portal.py Outdated Show resolved Hide resolved
mautrix_signal/portal.py Show resolved Hide resolved
mautrix_signal/matrix.py Outdated Show resolved Hide resolved
mautrix_signal/portal.py Outdated Show resolved Hide resolved
mautrix_signal/portal.py Outdated Show resolved Hide resolved
maltee1 and others added 4 commits May 30, 2022 20:51
Co-authored-by: Tulir Asokan <tulir@maunium.net>
Co-authored-by: Tulir Asokan <tulir@maunium.net>
Co-authored-by: Tulir Asokan <tulir@maunium.net>
@tulir tulir merged commit 99642da into mautrix:master Jun 4, 2022
@maltee1 maltee1 deleted the power_level branch June 6, 2022 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants