message_delete: Update "first_message_id" on message deletion.

We now "first_message_id" of the stream on the deletion of the first
message that was sent to it. This results in 1 extra query when any
stream message is deleted and 3 extra queries when the first message
sent to any stream is deleted.

Fixes #28877.
This commit is contained in:
Vector73
2024-04-27 20:21:14 +05:30
committed by Tim Abbott
parent 31c7b2bfd7
commit de90d0acdf
6 changed files with 70 additions and 4 deletions

View File

@@ -20,6 +20,11 @@ format used by the Zulip server that they are interacting with.
## Changes in Zulip 9.0
**Feature level 256**
* [`GET /events`](/api/get-events): Stream update events with a new
`first_message_id` may now be sent when messages are deleted.
**Feature level 255**
* "Stream" was renamed to "Channel" across strings in the Zulip API