fix: Show add user button only for owners (#9)

This commit is contained in:
Deven Joshi
2021-02-26 13:46:49 +01:00
committed by GitHub
parent 049429b221
commit eb5a7350c8
+1 -1
View File
@@ -142,7 +142,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
), ),
centerTitle: true, centerTitle: true,
actions: [ actions: [
if (!channel.channel.isDistinct) if (!channel.channel.isDistinct && isOwner)
StreamNeumorphicButton( StreamNeumorphicButton(
child: InkWell( child: InkWell(
onTap: () { onTap: () {