mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
message-edit: Use last_moved_timestamp for edited/moved indicators.
Use both the last_moved_timestamp and last_edit_timestamp to show edited and moved indicators/tooltips in the message list view of the web app, instead of parsing the message edit history array. We still maintain and build the message edit history array as it's used for calculating the narrow terms when there is a near operator and a message has been moved to a different channel or topic. Updates the tooltip for message edit indicators to include both the moved and edited time if a message has been both moved and edited.
This commit is contained in:
committed by
Tim Abbott
parent
7c653165af
commit
0f5246400b
@@ -74,6 +74,7 @@ export const raw_message_schema = z.intersection(
|
||||
id: z.number(),
|
||||
is_me_message: z.boolean(),
|
||||
last_edit_timestamp: z.optional(z.number()),
|
||||
last_moved_timestamp: z.optional(z.number()),
|
||||
reactions: z.array(message_reaction_schema),
|
||||
recipient_id: z.number(),
|
||||
sender_email: z.string(),
|
||||
|
Reference in New Issue
Block a user