Skip to content

Commit 09f5317

Browse files
authored
chore: disable team workspace (#5099)
1 parent b2f0c4f commit 09f5317

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

frontend/appflowy_flutter/lib/shared/feature_flags.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:appflowy/core/config/kv.dart';
44
import 'package:appflowy/core/config/kv_keys.dart';
55
import 'package:appflowy/startup/startup.dart';
66
import 'package:collection/collection.dart';
7+
import 'package:flutter/foundation.dart';
78

89
typedef FeatureFlagMap = Map<FeatureFlag, bool>;
910

@@ -83,14 +84,18 @@ enum FeatureFlag {
8384
bool get isOn {
8485
// release this feature in version 0.5.4
8586
if ([
86-
FeatureFlag.collaborativeWorkspace,
87-
FeatureFlag.membersSettings,
87+
// FeatureFlag.collaborativeWorkspace,
88+
// FeatureFlag.membersSettings,
8889
FeatureFlag.syncDatabase,
8990
FeatureFlag.syncDocument,
9091
].contains(this)) {
9192
return true;
9293
}
9394

95+
if (kReleaseMode) {
96+
return false;
97+
}
98+
9499
if (_values.containsKey(this)) {
95100
return _values[this]!;
96101
}

0 commit comments

Comments
 (0)