From a558ce67d61c27f6a32c727c9f617b8862403174 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 22 Jun 2022 12:51:24 -0700 Subject: [PATCH] Turn message formatting experiment on by default --- constants/attributes.go | 3 +++ utils/settings.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/constants/attributes.go b/constants/attributes.go index b20836f..92b08ff 100644 --- a/constants/attributes.go +++ b/constants/attributes.go @@ -30,3 +30,6 @@ const StateSelectedProfileTime = "state-selected-profile-time" const BlockUnknownPeersSetting = "blockunknownpeers" const LocaleSetting = "locale" const ZoomSetting = "zoom" + +// App Experiments +const MessageFormattingExperiment = "message-formatting" diff --git a/utils/settings.go b/utils/settings.go index e677969..88406fd 100644 --- a/utils/settings.go +++ b/utils/settings.go @@ -1,6 +1,7 @@ package utils import ( + "git.openprivacy.ca/cwtch.im/libcwtch-go/constants" path "path/filepath" "sync" @@ -65,7 +66,7 @@ var DefaultGlobalSettings = GlobalSettings{ Theme: "dark", PreviousPid: -1, ExperimentsEnabled: false, - Experiments: make(map[string]bool), + Experiments: map[string]bool{constants.MessageFormattingExperiment: true}, StateRootPane: 0, FirstTime: true, BlockUnknownConnections: false,