mirror of https://github.com/zulip/zulip.git
compose: Fix websockets having been accidentally disabled.
When we renamed use_socket to use_websockets, we only renamed it on the backend, and thus it became effectively hardcoded to false.
This commit is contained in:
parent
3d015eb259
commit
5ad9a9d014
|
@ -443,7 +443,7 @@ function report_send_time(send_time, receive_time, display_time, locally_echoed,
|
|||
}
|
||||
|
||||
var socket;
|
||||
if (page_params.use_socket) {
|
||||
if (page_params.use_websockets) {
|
||||
socket = new Socket("/sockjs");
|
||||
}
|
||||
// For debugging. The socket will eventually move out of this file anyway.
|
||||
|
@ -556,7 +556,7 @@ exports.send_message_success = function (local_id, message_id, start_time, local
|
|||
|
||||
exports.transmit_message = function (request, success, error) {
|
||||
delete exports.send_times_data[request.id];
|
||||
if (page_params.use_socket) {
|
||||
if (page_params.use_websockets) {
|
||||
send_message_socket(request, success, error);
|
||||
} else {
|
||||
send_message_ajax(request, success, error);
|
||||
|
|
Loading…
Reference in New Issue