mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Handles the case of closed registrations
This commit is contained in:
		@@ -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"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user