added bottom sheet capabilities
This commit is contained in:
@@ -155,7 +155,9 @@ class _ChannelBottomSheetState extends State<ChannelBottomSheet> {
|
|||||||
title: context.translations.viewInfoLabel,
|
title: context.translations.viewInfoLabel,
|
||||||
onTap: widget.onViewInfoTap,
|
onTap: widget.onViewInfoTap,
|
||||||
),
|
),
|
||||||
if (!channel.isDistinct)
|
if (!channel.isDistinct &&
|
||||||
|
channel.ownCapabilities
|
||||||
|
.contains(PermissionType.leaveChannel))
|
||||||
OptionListTile(
|
OptionListTile(
|
||||||
leading: Padding(
|
leading: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
@@ -174,7 +176,9 @@ class _ChannelBottomSheetState extends State<ChannelBottomSheet> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (isOwner)
|
if (isOwner &&
|
||||||
|
channel.ownCapabilities
|
||||||
|
.contains(PermissionType.deleteChannel))
|
||||||
OptionListTile(
|
OptionListTile(
|
||||||
leading: Padding(
|
leading: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
|
|||||||
Reference in New Issue
Block a user