mirror of https://github.com/zulip/zulip.git
1c8bf4f050
We should make `get_by_user_id` type-safe in the sense that it's caller should not expect undefined values and hence it's caller should not need to validate the user ids. To do this I extracted a method `maybe_get_user_by_id` which is type-unsafe version of this function which will allow undefined values and will behave exactly the same as the previous version. So the callers which expects the undefined values from this function should use this new function `maybe_get_user_by_id`. Probably about half of these callers are implicitly iterating through all users in the people.js data set and thus by construction should never fail, but it's simpler to just convert all existing callers than do that audit. |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
shared | ||
src | ||
styles | ||
templates | ||
tests | ||
third | ||
.browserslistrc | ||
.gitignore | ||
babel.config.js | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
postcss.config.js | ||
webpack.assets.json | ||
webpack.config.ts | ||
webpack.dev-assets.json |