matrix-org / prosody-mod-auth-matrix-user-verification

Matrix user verification auth for Prosody
Apache License 2.0
23 stars 12 forks source link

Ensure power level sync works properly #7

Closed jaywink closed 3 years ago

jaywink commented 3 years ago

Adds hooks to room creation to:

1) Allow setting owner of room only via this plugin (stops Jitsi auto-ownering when owners drop out)

2) Set owner for anyone based on the session.auth_matrix_user_verification_is_owner value, which is set when the user authenticates. Should it not exist, the user is a normal member.

Rewrites mod_matrix_power_sync.lua based on https://github.com/nvonahsen/jitsi-token-moderation-plugin/blob/a5ebdfaa38a6adde6bceba62cfbc5b1693e480b9/mod_token_moderation.lua