Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api-docs: Add when moving messages fields/parameters were added.

Lauryn Menard2f196bff1943
diff --git a/api_docs/changelog.md b/api_docs/changelog.md
index e91b6c4b5d5..7af7179b7a1 100644
--- a/api_docs/changelog.md
+++ b/api_docs/changelog.md
@@ -1461,6 +1461,15 @@ No changes; feature level used for Zulip 3.0 release.
**Feature level 1**:
+* [`PATCH /messages/{message_id}`](/api/update-message): Added the
+ `stream_id` parameter to support moving messages between streams.
+* [`GET /messages`](/api/get-messages), [`GET /events`](/api/get-events):
+ Added `prev_stream` as a potential property of the `edit_history` object
+ within message objects to indicate when a message was moved to another
+ stream.
+* [`GET messages/{message_id}/history`](/api/get-message-history):
+ `prev_stream` is present in `snapshot` objects within `message_history`
+ object when a message was moved to another stream.
* [`GET /server_settings`](/api/get-server-settings): Added
`zulip_feature_level`, which can be used by clients to detect which
of the features described in this changelog are supported.
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 7fceaacd929..7b25410e890 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -6004,6 +6004,8 @@ paths:
The ID of the stream containing the message immediately
prior to this edit event.
+
+ **Changes**: New in Zulip 3.0 (feature level 1).
content:
type: string
description: |
@@ -7054,6 +7056,8 @@ paths:
Note that a message's content and stream cannot be changed at the
same time, so sending both `content` and `stream_id` parameters will
throw an error.
+
+ **Changes**: New in Zulip 3.0 (feature level 1).
schema:
type: integer
example: 43
@@ -17490,6 +17494,8 @@ components:
The stream ID of the message immediately prior to this
edit event.
+
+ **Changes**: New in Zulip 3.0 (feature level 1).
prev_topic:
type: string
description: |