mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
bookend: Add stream icons to subscribed/unsubscribed divider line.
Fixes: #23685.
This commit is contained in:
@@ -326,6 +326,8 @@ export class MessageList {
|
||||
let just_unsubscribed = false;
|
||||
const subscribed = stream_data.is_subscribed_by_name(stream_name);
|
||||
const sub = stream_data.get_sub(stream_name);
|
||||
const invite_only = sub.invite_only;
|
||||
const is_web_public = sub.is_web_public;
|
||||
const can_toggle_subscription =
|
||||
sub !== undefined && stream_data.can_toggle_subscription(sub);
|
||||
if (sub === undefined) {
|
||||
@@ -333,6 +335,7 @@ export class MessageList {
|
||||
} else if (!subscribed && !this.last_message_historical) {
|
||||
just_unsubscribed = true;
|
||||
}
|
||||
|
||||
this.view.render_trailing_bookend(
|
||||
stream_name,
|
||||
subscribed,
|
||||
@@ -340,6 +343,8 @@ export class MessageList {
|
||||
just_unsubscribed,
|
||||
can_toggle_subscription,
|
||||
page_params.is_spectator,
|
||||
invite_only,
|
||||
is_web_public,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user