message_edit: Fix the name of a property being accessed wrongly.

The `stream_id` property of a stream object was being wrongly accessed
as `id`, which does not exist, in the function
`get_available_streams_for_moving_messages()`

This led to the current stream not being rendered in the dropdown list
as expected in the `Move Topic` modal when the user does not have the
permission to post in the current stream.
This commit is contained in:
N-Shar-ma 2022-12-10 20:01:27 +05:30 committed by Tim Abbott
parent af54293ff8
commit 571f6b1e91
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ export function get_available_streams_for_moving_messages(current_stream_id) {
return stream_data return stream_data
.subscribed_subs() .subscribed_subs()
.filter((stream) => { .filter((stream) => {
if (stream.id === current_stream_id) { if (stream.stream_id === current_stream_id) {
return true; return true;
} }
return stream_data.can_post_messages_in_stream(stream); return stream_data.can_post_messages_in_stream(stream);