chore: disable team workspace (#5099)

This commit is contained in:
Lucas.Xu 2024-04-09 09:46:53 +08:00 committed by GitHub
parent b2f0c4f109
commit 09f5317768
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@ import 'package:appflowy/core/config/kv.dart';
import 'package:appflowy/core/config/kv_keys.dart';
import 'package:appflowy/startup/startup.dart';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
typedef FeatureFlagMap = Map<FeatureFlag, bool>;
@ -83,14 +84,18 @@ enum FeatureFlag {
bool get isOn {
// release this feature in version 0.5.4
if ([
FeatureFlag.collaborativeWorkspace,
FeatureFlag.membersSettings,
// FeatureFlag.collaborativeWorkspace,
// FeatureFlag.membersSettings,
FeatureFlag.syncDatabase,
FeatureFlag.syncDocument,
].contains(this)) {
return true;
}
if (kReleaseMode) {
return false;
}
if (_values.containsKey(this)) {
return _values[this]!;
}