mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 12:58:51 +00:00
Handles the case of closed registrations
This commit is contained in:
parent
b10163575f
commit
bd33e1f9c2
@ -132,6 +132,11 @@ class _GroupMembershipWidgetState extends SafeState<GroupMembershipWidget> {
|
||||
|
||||
/// Build visitor state
|
||||
Widget _buildVisitorState() {
|
||||
|
||||
// Check if the user can request membership
|
||||
if (group.registrationLevel == GroupRegistrationLevel.CLOSED)
|
||||
return Text(tr("Closed registration"));
|
||||
|
||||
return RichText(
|
||||
text: TextSpan(
|
||||
text: tr("Request membership"),
|
||||
|
Loading…
Reference in New Issue
Block a user