mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 04:53:06 +00:00
Merge branch 'fix/chats-no-unread-in-openapi' into 'develop'
ChatMessage schema: Add `unread` property See merge request pleroma/pleroma!3323
This commit is contained in:
commit
8829a408ec
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue