}
end
- def index_operation do
- %Operation{
- tags: ["Chats"],
- summary: "Retrieve list of chats (unpaginated)",
- deprecated: true,
- description:
- "Deprecated due to no support for pagination. Using [/api/v2/pleroma/chats](#operation/ChatController.index2) instead is recommended.",
- operationId: "ChatController.index",
- parameters: [
- Operation.parameter(:with_muted, :query, BooleanLike, "Include chats from muted users")
- ],
- responses: %{
- 200 => Operation.response("The chats of the user", "application/json", chats_response())
- },
- security: [
- %{
- "oAuth" => ["read:chats"]
- }
- ]
- }
- end
-
def index2_operation do
%Operation{
tags: ["Chats"],