From e44e48ef208ace945438bcd98f326fdad6f5fde3 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 30 Jan 2021 12:51:21 +0000 Subject: [PATCH] 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. --- static/js/peer_data.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/peer_data.js b/static/js/peer_data.js index 88677f110c..4aff1ab565 100644 --- a/static/js/peer_data.js +++ b/static/js/peer_data.js @@ -64,7 +64,7 @@ export function potential_subscribers(stream_id) { 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) { // 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) { const subscribers = new LazySet(user_ids || []); stream_subscribers.set(stream_id, subscribers); - return subscribers; } export function add_subscriber(stream_id, user_id) {