zulip/zulip-terminal

Mark messages as EDITED or MOVED in the UI for multiple messages at a time.

Subhasish-Behera opened this issue · 0 comments

Currently, the model.py code handles the edit of the message from which the event originated. But an edit originating from one message can affect multiple messages (for eg. propagation mode edits/topic-rename change edits).

Eg: here is a message event
event {'type': 'update_message', 'user_id': 25554, 'edit_timestamp': 1680095186, 'message_id': 1536316, 'rendering_only': False, 'stream_name': 'test here', 'stream_id': 7, 'propagate_mode': 'change_later', 'orig_subject': 'zt_2025', 'subject': 'zt_2025_', 'topic_links': [], 'message_ids': [1536316, 1536317], 'flags': ['read'], 'id': 7}

For updating the message label for multiple messages the message_ids key of the update_message event has to be used.

Note: It is advisable to work on this after merging #T1331