From 6314cb3b071efa6b147509c4a8960d2932dee72b Mon Sep 17 00:00:00 2001 From: Vlad Chernushevich Date: Fri, 21 Jun 2013 00:41:52 +0200 Subject: [PATCH] Add comment to time_difference --- client/assets/src/views/panel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/assets/src/views/panel.js b/client/assets/src/views/panel.js index af8d171..553f2d4 100644 --- a/client/assets/src/views/panel.js +++ b/client/assets/src/views/panel.js @@ -118,6 +118,7 @@ _kiwi.view.Panel = Backbone.View.extend({ template_vars = _.clone(msg); if (prev_msg) { + // Time difference between this message and the last (in minutes) time_difference = (template_vars.date.getTime() - prev_msg.date.getTime())/1000/60; if (prev_msg.nick === template_vars.nick && time_difference < 1) { template_vars.nick = ''; -- 2.25.1