mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
events: Add functionality to mark messages as unread.
Co-authored-by: Steve Howell <showell@zulip.com> Co-authored-by: Tim Abbott <tabbott@zulip.com> This commit adds the backend functionality to mark messages as unread through update_message_flags with `unread` flag and `remove` operation. We also manage incoming events in the webapp. Tweaked by tabbott to simplify the implementation and add an API feature level update to the documentation. This commit was originally drafted by showell, and showell also finalized the changes. Many thanks to Suyash here for the main work here, which was to get all the tests and documentation work moving forward.
This commit is contained in:
committed by
Tim Abbott
parent
bf890cf91a
commit
20a97bdb05
@@ -450,7 +450,7 @@ export function process_loaded_messages(messages) {
|
||||
}
|
||||
}
|
||||
|
||||
function process_unread_message(message) {
|
||||
export function process_unread_message(message) {
|
||||
// The `message` here just needs to require certain fields. For example,
|
||||
// the "message" may actually be constructed from a Zulip event that doesn't
|
||||
// include fields like "content". The caller must verify that the message
|
||||
|
||||
Reference in New Issue
Block a user