summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rin@patch.cx>2021-02-16 22:41:06 +0300
committerrinpatch <rin@patch.cx>2021-02-16 22:41:06 +0300
commit98ab2b82a649ceb2f50c3058a1a52349507959c4 (patch)
tree7098871a29d9f419cc5fbaad4f8256e3cc51975a
parent13e324abe9af5d58137adda7caec115ed3305e95 (diff)
ChatMessage schema: Add `unread` property
It is present in the code, but was not documented.
-rw-r--r--lib/pleroma/web/api_spec/schemas/chat_message.ex6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/chat_message.ex b/lib/pleroma/web/api_spec/schemas/chat_message.ex
index 6986b9c17..348fe95f8 100644
--- a/lib/pleroma/web/api_spec/schemas/chat_message.ex
+++ b/lib/pleroma/web/api_spec/schemas/chat_message.ex
@@ -52,7 +52,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ChatMessage do
title: %Schema{type: :string, description: "Title of linked resource"},
description: %Schema{type: :string, description: "Description of preview"}
}
- }
+ },
+ unread: %Schema{type: :boolean, description: "Whether a message has been marked as read."}
},
example: %{
"account_id" => "someflakeid",
@@ -69,7 +70,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ChatMessage do
}
],
"id" => "14",
- "attachment" => nil
+ "attachment" => nil,
+ "unread" => false
}
})
end