Files
zulip/web/tests/channel.test.js
Lalit Kumar Singh cfe2ddb091 ui_report: Reuse channel.xhr_error_message function in error method.
We should reuse the `channel.xhr_error_message` in `ui_report` to reduce
code duplication.

Also, I changed the type of `message` parameter to `string` instead of
`string | null` so that we do not need to alter the types of the functions
that depends on the return value of `xhr_error_message`.
2023-08-31 13:47:16 -07:00

11 KiB