mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
messages: Use stream_id instead of stream name.
This should cause no functional changes. This is part of a multi-step effort to move away from using stream names to reference streams, now that it's impossible for a user to write a message with an invalid stream name (since switching to the dropdown).
This commit is contained in:
@@ -134,7 +134,7 @@ export function create_message_object() {
|
||||
content: compose_state.message_content(),
|
||||
sender_id: page_params.user_id,
|
||||
queue_id: page_params.queue_id,
|
||||
stream: "",
|
||||
stream_id: "",
|
||||
};
|
||||
message.topic = "";
|
||||
|
||||
@@ -159,8 +159,6 @@ export function create_message_object() {
|
||||
const stream_id = compose_state.stream_id();
|
||||
message.stream_id = stream_id;
|
||||
message.to = stream_id;
|
||||
const stream = stream_data.get_sub_by_id(stream_id);
|
||||
message.stream = stream ? stream.name : "";
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user