Mm 52993 - expose enable user statuses to client (#25455)

* MM-52993_expose enable user statuses to client and prevent statuses fetch when disabled

* modify the logic, add selector, add unit tests

* implement PR feedback

* fix unit tests

* remove client console warnings

* remove another unnecessary call if the flag is disabled

* fix merge conflicts
Этот коммит содержится в:
Pablo Vélez
2024-02-07 15:39:19 +01:00
коммит произвёл GitHub
родитель 03f71c9c84
Коммит 2e40ede7dd
16 изменённых файлов: 176 добавлений и 24 удалений

Просмотреть файл

@@ -240,6 +240,19 @@ func TestGetClientConfig(t *testing.T) {
"ExperimentalSharedChannels": "true",
},
},
{
"disable EnableUserStatuses",
&model.Config{
ServiceSettings: model.ServiceSettings{
EnableUserStatuses: model.NewBool(false),
},
},
"",
nil,
map[string]string{
"EnableUserStatuses": "false",
},
},
{
"Shared channels enterprise license",
&model.Config{