Show the sender line again if there is a delay between messages.

(imported from commit fffdb5d5fb5804c44af24e8e8037a7b4af14833a)
This commit is contained in:
Tim Abbott 2012-10-05 13:37:09 -04:00
parent 0c3ace82d5
commit fc71233b9a
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}