From f44a7e878596c6d0227b8ef023b6391710a4af6d Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 21 Jan 2016 15:42:08 +0100 Subject: [PATCH] =?UTF-8?q?Add=20(allow-none)=20annotation=20to=20add=5Fro?= =?UTF-8?q?om=5Ftag=E2=80=99s=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Although the specification says it is required, the body of the request can actually be an empty JSON object; and that is what we send if a JSON content is NULL. --- src/matrix-api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/matrix-api.c b/src/matrix-api.c index 21a5411..d2102b7 100644 --- a/src/matrix-api.c +++ b/src/matrix-api.c @@ -2112,7 +2112,8 @@ matrix_api_delete_room_tag(MatrixAPI *api, * @user_id: the ID of the user to add the tag for * @room_id: the ID of the room to add the tag for * @tag: the tag to add - * @content: (transfer full): extra data for the tag, e.g. ordering + * @content: (transfer full) (allow-none): extra data for the tag, + * e.g. ordering * @error: return location for a #GError, or %NULL * * Add a tag to the room.