mirror of https://github.com/zulip/zulip.git
snapshot_message: Get stream id from name instead of name from id.
This commit is contained in:
parent
d9edcba724
commit
8cee3dfbf2
|
@ -199,11 +199,9 @@ export function snapshot_message() {
|
|||
message.reply_to = recipient;
|
||||
message.private_message_recipient = recipient;
|
||||
} else {
|
||||
message.stream = compose_state.stream_name();
|
||||
const sub = stream_data.get_sub(message.stream);
|
||||
if (sub) {
|
||||
message.stream_id = sub.stream_id;
|
||||
}
|
||||
message.stream_id = compose_state.stream_id();
|
||||
const sub = stream_data.get_sub_by_id(message.stream_id);
|
||||
message.stream = sub ? sub.name : "";
|
||||
message.topic = compose_state.topic();
|
||||
}
|
||||
return message;
|
||||
|
|
Loading…
Reference in New Issue