refactor: Use sub_store for get/validation.

This reduces the complexity of our dependency graph.

It also makes sub_store.get parallel to message_store.get.
For both you pass in the relevant id to get the
full validated object.
This commit is contained in:
Steve Howell
2021-04-15 15:02:54 +00:00
committed by Tim Abbott
parent d2bbb7d521
commit 173ce9a3fc
26 changed files with 90 additions and 83 deletions

View File

@@ -751,13 +751,3 @@ export function initialize(params) {
export function remove_default_stream(stream_id) {
default_stream_ids.delete(stream_id);
}
export function get_sub_by_id(stream_id) {
// TODO: remove this shim in the next commit
return sub_store.get(stream_id);
}
export function validate_stream_ids(stream_ids) {
// TODO: remove this shim in the next commit
return sub_store.validate_stream_ids(stream_ids);
}