From d246189d988103ddc68ee90e982731a090a70119 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 6 Nov 2013 18:09:40 -0500 Subject: [PATCH] Fix report_send_time check. (imported from commit eeb2dd9cb0861a5eeea6254ab9d6a3d818fb2ebd) --- static/js/compose.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/compose.js b/static/js/compose.js index 7aa64ae7a4..4ea5eedc6e 100644 --- a/static/js/compose.js +++ b/static/js/compose.js @@ -385,7 +385,8 @@ exports.send_times_log = []; exports.send_times_data = {}; function maybe_report_send_times(message_id) { var data = exports.send_times_data[message_id]; - if (data.send_finished === undefined || data.received === undefined) { + if (data.send_finished === undefined || data.received === undefined || + data.displayed === undefined) { // We report the data once we have both the send and receive times return; }