fix(announcements): error message not showing when an event announcement is created with empty text

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2024-01-09 15:49:03 +01:00
parent 9207d76712
commit ef20585f8c
2 changed files with 8 additions and 1 deletions

View File

@@ -156,6 +156,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Conversation do
{:ok, conversation_to_view(conversation, conversation_participant_actor)}
{:error, %Ecto.Changeset{} = changeset} ->
{:error, changeset}
{:error, :empty_participants} ->
{:error,
dgettext(