ChatMessage schema: Add `unread` property

It is present in the code, but was not documented.
This commit is contained in:
rinpatch 2021-02-16 22:41:06 +03:00
parent 13e324abe9
commit 98ab2b82a6
1 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ChatMessage do
title: %Schema{type: :string, description: "Title of linked resource"}, title: %Schema{type: :string, description: "Title of linked resource"},
description: %Schema{type: :string, description: "Description of preview"} description: %Schema{type: :string, description: "Description of preview"}
} }
} },
unread: %Schema{type: :boolean, description: "Whether a message has been marked as read."}
}, },
example: %{ example: %{
"account_id" => "someflakeid", "account_id" => "someflakeid",
@ -69,7 +70,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ChatMessage do
} }
], ],
"id" => "14", "id" => "14",
"attachment" => nil "attachment" => nil,
"unread" => false
} }
}) })
end end