mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
minor: Add get_user_set call that I missed earlier.
In my recent commit to introduce get_user_set() I inadvertently skipped one place to call it. I also remove a return statement that was made unnecessary by the new get_user_set() helper.
This commit is contained in:
@@ -64,7 +64,7 @@ export function potential_subscribers(stream_id) {
|
|||||||
may be moot now for other reasons.)
|
may be moot now for other reasons.)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const subscribers = stream_subscribers.get(stream_id);
|
const subscribers = get_user_set(stream_id);
|
||||||
|
|
||||||
function is_potential_subscriber(person) {
|
function is_potential_subscriber(person) {
|
||||||
// Use verbose style to force better test
|
// Use verbose style to force better test
|
||||||
@@ -96,7 +96,6 @@ export function get_subscribers(stream_id) {
|
|||||||
export function set_subscribers(stream_id, user_ids) {
|
export function set_subscribers(stream_id, user_ids) {
|
||||||
const subscribers = new LazySet(user_ids || []);
|
const subscribers = new LazySet(user_ids || []);
|
||||||
stream_subscribers.set(stream_id, subscribers);
|
stream_subscribers.set(stream_id, subscribers);
|
||||||
return subscribers;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function add_subscriber(stream_id, user_id) {
|
export function add_subscriber(stream_id, user_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user