mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-17 03:38:59 -04:00
19 lines
679 B
Dart
19 lines
679 B
Dart
import 'package:veilid/veilid.dart';
|
|
|
|
Future<VeilidConfig> getVeilidChatConfig() async {
|
|
VeilidConfig config = await getDefaultVeilidConfig("VeilidChat");
|
|
if (const String.fromEnvironment("DELETE_TABLE_STORE") == "1") {
|
|
config =
|
|
config.copyWith(tableStore: config.tableStore.copyWith(delete: true));
|
|
}
|
|
if (const String.fromEnvironment("DELETE_PROTECTED_STORE") == "1") {
|
|
config = config.copyWith(
|
|
protectedStore: config.protectedStore.copyWith(delete: true));
|
|
}
|
|
if (const String.fromEnvironment("DELETE_BLOCK_STORE") == "1") {
|
|
config =
|
|
config.copyWith(blockStore: config.blockStore.copyWith(delete: true));
|
|
}
|
|
|
|
return config;
|
|
}
|