From cce27aa47db2f12419215afeae93ed42f6117e08 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Mon, 1 Nov 2021 16:26:13 -0700 Subject: [PATCH] openapi: Say message_content_delete_limit_seconds won't be 0 anymore. I think this is ensured by an assertion in parse_message_content_delete_limit in zerver/lib/message.py: https://github.com/zulip/zulip/blob/b13bfa09c/zerver/lib/message.py#L1482 --- templates/zerver/api/changelog.md | 3 ++- zerver/openapi/zulip.yaml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/zerver/api/changelog.md b/templates/zerver/api/changelog.md index 8a403f156b..e8f559e17a 100644 --- a/templates/zerver/api/changelog.md +++ b/templates/zerver/api/changelog.md @@ -67,7 +67,8 @@ below features are supported. * [`POST /register`](/api/register-queue), [`GET /events`](/api/get-events): `message_content_delete_limit_seconds` - now represents no limit using `null`, instead of the integer 0. + now represents no limit using `null`, instead of the integer 0, and 0 is + no longer a possible value with any meaning. * `PATCH /realm`: One now sets `message_content_delete_limit_seconds` to no limit by passing the string `unlimited`, rather than the integer 0. diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml index 5126db4381..bf35efa99d 100644 --- a/zerver/openapi/zulip.yaml +++ b/zerver/openapi/zulip.yaml @@ -3580,7 +3580,7 @@ paths: with this organization's [message deletion policy](/help/configure-message-editing-and-deletion). - A 'null' value means no limit: messages can be deleted + Will not be 0. A 'null' value means no limit: messages can be deleted regardless of how long ago they were sent. **Changes**: No limit was represented using the @@ -10807,7 +10807,7 @@ paths: with this organization's [message deletion policy](/help/configure-message-editing-and-deletion). - A 'null' value means no limit: messages can be deleted + Will not be 0. A 'null' value means no limit: messages can be deleted regardless of how long ago they were sent. **Changes**: No limit was represented using the