dropdown_list_widget: Add privacy icons for stream options.

This commit adds privacy icons before the stream names in
dropdown-list widget for "New user announcements",
"New stream announcements" settings and for stream dropdown
in "Move message" and "Move topic" modal.

Fixes part of #22355.
This commit is contained in:
Sahil Batra
2023-04-12 15:43:43 +05:30
committed by Tim Abbott
parent 067c71adc4
commit 66b6151f61
3 changed files with 7 additions and 1 deletions

View File

@@ -417,6 +417,7 @@ export function get_available_streams_for_moving_messages(current_stream_id) {
.map((stream) => ({
name: stream.name,
value: stream.stream_id.toString(),
stream,
}))
.sort((a, b) => {
if (a.name.toLowerCase() < b.name.toLowerCase()) {