mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user