From 3d292b2255d354b0b60fbfcf38755ef5ee853ec3 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:48:38 -0500 Subject: [PATCH] don't pull support space IDs from .env file (#1157) --- .gitignore | 2 +- lib/pangea/config/environment.dart | 5 +++-- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 3b7d316e5d..ee552d07a8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ prime !/public/.env *.env.local_choreo *.env.prod - +*.env # libolm package /assets/js/package diff --git a/lib/pangea/config/environment.dart b/lib/pangea/config/environment.dart index 8a3a5beb20..473c541d5b 100644 --- a/lib/pangea/config/environment.dart +++ b/lib/pangea/config/environment.dart @@ -71,8 +71,9 @@ class Environment { } static String get supportSpaceId { - return dotenv.env["SUPPORT_SPACE_ID"] ?? - '!gqSNSkvwTpgumyjLsV:staging.pangea.chat'; + return isStaging + ? '!gqSNSkvwTpgumyjLsV:staging.pangea.chat' + : '!MvJoWwKJErvFuTYOdq:pangea.chat'; } static String get supportUserId { diff --git a/pubspec.yaml b/pubspec.yaml index aa56d7e6f8..8028cd23bc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,7 +6,7 @@ description: Learn a language while texting your friends. # Pangea# publish_to: none # On version bump also increase the build number for F-Droid -version: 1.23.15+3574 +version: 1.23.16+3575 environment: sdk: ">=3.0.0 <4.0.0"