allow users to respond to polls by default (org.matrix.msc3381.poll.response)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
45254638b1
commit
e38c37d9e7
1 changed files with 6 additions and 0 deletions
|
@ -821,6 +821,12 @@ fn default_power_levels_content(
|
||||||
power_levels_content["events"]["m.room.history_visibility"] =
|
power_levels_content["events"]["m.room.history_visibility"] =
|
||||||
serde_json::to_value(100).expect("100 is valid Value");
|
serde_json::to_value(100).expect("100 is valid Value");
|
||||||
|
|
||||||
|
// always allow users to respond (not post new) to polls. this is primarily
|
||||||
|
// useful in read-only announcement rooms that post a public poll.
|
||||||
|
power_levels_content["events"]["org.matrix.msc3381.poll.response"] =
|
||||||
|
serde_json::to_value(0).expect("0 is valid Value");
|
||||||
|
power_levels_content["events"]["m.poll.response"] = serde_json::to_value(0).expect("0 is valid Value");
|
||||||
|
|
||||||
// synapse does this too. clients do not expose these permissions. it prevents
|
// synapse does this too. clients do not expose these permissions. it prevents
|
||||||
// default users from calling public rooms, for obvious reasons.
|
// default users from calling public rooms, for obvious reasons.
|
||||||
if *visibility == room::Visibility::Public {
|
if *visibility == room::Visibility::Public {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue