mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
Add stream_id to event for topic updates.
(imported from commit 2c0ff291672a2576e5812d8c3abdb71256ada61f)
This commit is contained in:
@@ -2033,6 +2033,7 @@ def do_update_message(user_profile, message_id, subject, propagate_mode, content
|
||||
subject = truncate_topic(subject)
|
||||
event["orig_subject"] = orig_subject
|
||||
message.subject = subject
|
||||
event["stream_id"] = message.recipient.type_id
|
||||
event["subject"] = subject
|
||||
event['subject_links'] = bugdown.subject_links(message.sender.realm.domain.lower(), subject)
|
||||
edit_history_event["prev_subject"] = orig_subject
|
||||
|
||||
@@ -273,6 +273,7 @@ class EventsRegisterTest(AuthedTestCase):
|
||||
('orig_subject', check_string),
|
||||
('rendered_content', check_string),
|
||||
('sender', check_string),
|
||||
('stream_id', check_int),
|
||||
('subject', check_string),
|
||||
('subject_links', check_list(None)),
|
||||
# There is also a timestamp field in the event, but we ignore it, as
|
||||
|
||||
Reference in New Issue
Block a user