projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13e324a
)
ChatMessage schema: Add `unread` property
author
rinpatch
<rin@patch.cx>
Tue, 16 Feb 2021 19:41:06 +0000
(22:41 +0300)
committer
rinpatch
<rin@patch.cx>
Tue, 16 Feb 2021 19:41:06 +0000
(22:41 +0300)
It is present in the code, but was not documented.
lib/pleroma/web/api_spec/schemas/chat_message.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/api_spec/schemas/chat_message.ex
b/lib/pleroma/web/api_spec/schemas/chat_message.ex
index 6986b9c17b722a7cd7b7cab327dd1a0887ca1042..348fe95f88101ba855061dda4e4d2a6203cdefe7 100644
(file)
--- 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