Skip to content

Commit

Permalink
fix default power level in public rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Feb 12, 2024
1 parent 50a332c commit cb2b7a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions synapse/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ class EventTypes:

Reaction: Final = "m.reaction"

CallInvite: Final = "m.call.invite"


class ToDeviceEventTypes:
RoomKeyRequest: Final = "m.room_key_request"
Expand Down
2 changes: 1 addition & 1 deletion synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def __init__(self, hs: "HomeServer"):
"history_visibility": HistoryVisibility.SHARED,
"original_invitees_have_ops": False,
"guest_can_join": False,
"power_level_content_override": {},
"power_level_content_override": {EventTypes.CallInvite: 50},
},
}

Expand Down

0 comments on commit cb2b7a2

Please sign in to comment.