MM-56881 Validate and ensure valid CustomStatus is stored (#26287)

* don't allow invalid CustomStatus

* allow empty emoji in custom status

* lint fix

* add english translation

* update for review comments.

* fix bad fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Scott Bishel
2024-03-04 15:53:55 -07:00
коммит произвёл GitHub
родитель 5740b43922
Коммит 30454f241d
7 изменённых файлов: 78 добавлений и 8 удалений

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

@@ -9770,6 +9770,10 @@
"id": "model.user.is_valid.id.app_error",
"translation": "Invalid user id."
},
{
"id": "model.user.is_valid.invalidProperty.app_error",
"translation": "Invalid props (custom status)"
},
{
"id": "model.user.is_valid.last_name.app_error",
"translation": "Invalid last name."