Merge pull request #216 from pangeachat/only-admin-remove-room-from-space

Only admins can remove a room from a space
pull/1183/head
ggurdin 2 years ago committed by GitHub
commit 31c128f329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -237,6 +237,10 @@ class _SpaceViewState extends State<SpaceView> {
icon: Icons.send_outlined,
),
if (spaceChild != null &&
// #Pangea
room != null &&
room.ownPowerLevel >= ClassDefaultValues.powerLevelOfAdmin &&
// Pangea#
(activeSpace?.canChangeStateEvent(EventTypes.spaceChild) ?? false))
SheetAction(
key: SpaceChildContextAction.removeFromSpace,

Loading…
Cancel
Save