Allows the user to leave and join their own groups

This commit is contained in:
Vitor Pamplona 2023-02-10 09:13:01 -05:00
parent 50bc55e84b
commit 29dc677148

View File

@ -190,7 +190,8 @@ fun ChannelHeader(baseChannel: Channel, account: Account, accountStateViewModel:
channel?.let {
if (channel.creator == account.userProfile()) {
EditButton(account, it)
} else {
}
if (account.followingChannels.contains(channel.idHex)) {
LeaveButton(account, channel, navController)
} else {
@ -200,7 +201,6 @@ fun ChannelHeader(baseChannel: Channel, account: Account, accountStateViewModel:
}
}
}
}
Divider(
modifier = Modifier.padding(start = 12.dp, end = 12.dp),