Merge pull request #216 from pangeachat/only-admin-remove-room-from-space
Only admins can remove a room from a space
This commit is contained in:
commit
31c128f329
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue