From a3ee9b2074be1761b637531e32f8b06156e61c3d Mon Sep 17 00:00:00 2001
From: vjrj <vjrj@comunes.org>
Date: Thu, 3 Aug 2023 00:20:19 +0200
Subject: [PATCH] Ginkgo FR Telegram group

---
 lib/ui/widgets/card_drawer.dart | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/lib/ui/widgets/card_drawer.dart b/lib/ui/widgets/card_drawer.dart
index 8c7a2e9f..4d6dac9b 100644
--- a/lib/ui/widgets/card_drawer.dart
+++ b/lib/ui/widgets/card_drawer.dart
@@ -104,12 +104,16 @@ class CardDrawer extends StatelessWidget {
                   leading: const Icon(Icons.telegram_outlined),
                   title: Text(tr('telegram_group')),
                   onTap: () async {
-                    if (context.locale == const Locale('es') ||
-                        context.locale == const Locale('ca') ||
-                        context.locale == const Locale('gl') ||
-                        context.locale == const Locale('eu') ||
-                        context.locale == const Locale('ast')) {
+                    final Locale locale = context.locale;
+                    if (locale == const Locale('es') ||
+                        locale == const Locale('ca') ||
+                        locale == const Locale('gl') ||
+                        locale == const Locale('eu') ||
+                        locale == const Locale('ast')) {
                       await openUrl('https://t.me/g1nkgoES');
+                    }
+                    if (locale == const Locale('fr')) {
+                      await openUrl('https://t.me/g1nkgoFR');
                     } else {
                       await openUrl('https://t.me/g1nkgoEN');
                     }
-- 
GitLab