From fc71233b9a3265c2e3a8b4a27a6e8475093d44c6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 5 Oct 2012 13:37:09 -0400 Subject: [PATCH] Show the sender line again if there is a delay between messages. (imported from commit fffdb5d5fb5804c44af24e8e8037a7b4af14833a) --- zephyr/static/js/zephyr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index aa3d0796a6..10feee1ea1 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -284,7 +284,9 @@ function add_to_table(zephyrs, table_name, filter_function, where) { } zephyr.include_sender = true; - if (same_sender(prev, zephyr) && !zephyr.include_recipient) { + if (!zephyr.include_recipient && + same_sender(prev, zephyr) && + (Math.abs(zephyr.timestamp - prev.timestamp) < 60*10)) { zephyr.include_sender = false; ids_where_next_is_same_sender.push(prev.id); }