Skip to content

Commit e44e48e

Browse files
showelltimabbott
authored andcommitted
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.
1 parent 016038d commit e44e48e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

static/js/peer_data.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function potential_subscribers(stream_id) {
6464
may be moot now for other reasons.)
6565
*/
6666

67-
const subscribers = stream_subscribers.get(stream_id);
67+
const subscribers = get_user_set(stream_id);
6868

6969
function is_potential_subscriber(person) {
7070
// Use verbose style to force better test
@@ -96,7 +96,6 @@ export function get_subscribers(stream_id) {
9696
export function set_subscribers(stream_id, user_ids) {
9797
const subscribers = new LazySet(user_ids || []);
9898
stream_subscribers.set(stream_id, subscribers);
99-
return subscribers;
10099
}
101100

102101
export function add_subscriber(stream_id, user_id) {

0 commit comments

Comments
 (0)