mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
Change get_updates_params.reload_pending to reload.is_pending() as the former no longer exists
(imported from commit fdc59a27230cb49adee2f5444e440aaa84103e5e)
This commit is contained in:
@@ -127,7 +127,7 @@ function send_message() {
|
|||||||
$("#compose-send-button").removeAttr('disabled');
|
$("#compose-send-button").removeAttr('disabled');
|
||||||
},
|
},
|
||||||
error: function (xhr, error_type) {
|
error: function (xhr, error_type) {
|
||||||
if (error_type !== 'timeout' && get_updates_params.reload_pending) {
|
if (error_type !== 'timeout' && reload.is_pending()) {
|
||||||
// The error might be due to the server changing
|
// The error might be due to the server changing
|
||||||
reload.initiate({immediate: true, send_after_reload: true});
|
reload.initiate({immediate: true, send_after_reload: true});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user