mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Can request to join a Forez group
This commit is contained in:
		@@ -87,7 +87,7 @@ class _GroupMembershipWidgetState extends SafeState<GroupMembershipWidget> {
 | 
			
		||||
            message: tr("Do you really want to reject this invitation?")))
 | 
			
		||||
      return;
 | 
			
		||||
 | 
			
		||||
    if (!await GroupsHelper().respondInvitation(_id, accept)) {
 | 
			
		||||
    if (!await GroupsHelper.respondInvitation(_id, accept)) {
 | 
			
		||||
      showSimpleSnack(context, tr("Could not respond to your invitation!"));
 | 
			
		||||
      if (this.widget.onError != null) this.widget.onError();
 | 
			
		||||
    } else {
 | 
			
		||||
@@ -147,7 +147,7 @@ class _GroupMembershipWidgetState extends SafeState<GroupMembershipWidget> {
 | 
			
		||||
 | 
			
		||||
  /// Create new membership request
 | 
			
		||||
  void _requestMembership() async {
 | 
			
		||||
    if (!await GroupsHelper().sendRequest(_id)) {
 | 
			
		||||
    if (!await GroupsHelper.sendRequest(_id)) {
 | 
			
		||||
      showSimpleSnack(context, tr("Could not send your membership request!"));
 | 
			
		||||
      if (this.widget.onError != null) this.widget.onError();
 | 
			
		||||
    } else {
 | 
			
		||||
 
 | 
			
		||||
@@ -46,6 +46,9 @@ class LoginRoutesTheme extends StatelessWidget {
 | 
			
		||||
            accentColor: Colors.white,
 | 
			
		||||
            hintColor: Colors.white,
 | 
			
		||||
            textTheme: TextTheme(subtitle1: TextStyle(color: Colors.white)),
 | 
			
		||||
            radioTheme: RadioThemeData(
 | 
			
		||||
              fillColor: MaterialStateProperty.all(Colors.white),
 | 
			
		||||
            ),
 | 
			
		||||
            colorScheme: ColorScheme(
 | 
			
		||||
              primary: Colors.white,
 | 
			
		||||
              primaryVariant: Colors.white,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user