mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
streams: Redirect to subscribed-tab on unsubscription for guest user.
This commit add code to redirect guest users to subscribed-stream-tab and removes the recently-unsubscribed stream from settings tab on unsubscription.
This commit is contained in:
committed by
Tim Abbott
parent
b68c1bb6ac
commit
3f38fc6b79
@@ -106,7 +106,7 @@ exports.update_stream_row_in_settings_tab = function (sub) {
|
||||
var sub_row = subs.row_for_stream_id(sub.stream_id);
|
||||
if (sub.subscribed) {
|
||||
sub_row.removeClass("notdisplayed");
|
||||
} else if (sub.invite_only) {
|
||||
} else if (sub.invite_only || page_params.is_guest) {
|
||||
sub_row.addClass("notdisplayed");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user