mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	subs: Fix bug with invalid access to stream IDs.
`sub.id` isn't a valid field; it's `sub.stream_id`.
This commit is contained in:
		@@ -223,7 +223,7 @@ exports.update_settings_for_subscribed = function (sub) {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    var active_stream = exports.active_stream();
 | 
			
		||||
    if (active_stream.stream_id === sub.id) {
 | 
			
		||||
    if (active_stream.stream_id === sub.stream_id) {
 | 
			
		||||
        stream_edit.rerender_subscribers_list(sub);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -243,7 +243,7 @@ exports.update_settings_for_unsubscribed = function (sub) {
 | 
			
		||||
    stream_edit.hide_sub_settings(sub);
 | 
			
		||||
 | 
			
		||||
    var active_stream = exports.active_stream();
 | 
			
		||||
    if (active_stream.stream_id === sub.id) {
 | 
			
		||||
    if (active_stream.stream_id === sub.stream_id) {
 | 
			
		||||
        stream_edit.rerender_subscribers_list(sub);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user