mirror of https://github.com/vector-im/riot-web
Fix fallback value for missing invite power level (#8335)
The spec was recently amended to document that invites actually fall back to a default of 0, rather than 50 (since this is what Synapse was doing all along): https://github.com/matrix-org/matrix-spec/pull/1021pull/21833/head
parent
d162e021e1
commit
1afecc474f
|
@ -942,7 +942,7 @@ function useRoomPermissions(cli: MatrixClient, room: Room, user: RoomMember): IR
|
|||
}
|
||||
|
||||
setRoomPermissions({
|
||||
canInvite: me.powerLevel >= (powerLevels.invite ?? 50),
|
||||
canInvite: me.powerLevel >= (powerLevels.invite ?? 0),
|
||||
canEdit: modifyLevelMax >= 0,
|
||||
modifyLevelMax,
|
||||
});
|
||||
|
|
|
@ -262,7 +262,7 @@ export default class RolesRoomSettingsTab extends React.Component<IProps> {
|
|||
},
|
||||
"invite": {
|
||||
desc: _t('Invite users'),
|
||||
defaultValue: 50,
|
||||
defaultValue: 0,
|
||||
},
|
||||
"state_default": {
|
||||
desc: _t('Change settings'),
|
||||
|
|
Loading…
Reference in New Issue