Skip to content
Snippets Groups Projects
Commit 17940cb7 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Only ask for a Matrix ID if the config is complete

parent 1e895b47
Branches
Tags
No related merge requests found
Pipeline #63950 canceled
......@@ -17,6 +17,13 @@ def add_matrix_id_question(sender, position, **kwargs):
if str(position.item.pk) not in sender.settings.get("matrix_inviter_items"):
return {}
if (
not sender.settings.matrix_inviter_authorization_token
and not sender.settings.matrix_inviter_matrix_server
and not sender.settings.matrix_inviter_matrix_room
):
return {}
return {
"matrix_inviter_matrix_id": forms.RegexField(
label=_("Matrix ID"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment