aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2014-10-27 19:42:25 -0700
committerRyan Huber <rhuber@gmail.com>2014-10-27 19:42:25 -0700
commitc3fd361137b7ed71cbdaa53686584a8e462d88eb (patch)
treeacb95c33191153366028173b260c5c1399e31cd0 /wee_slack.py
parentb43b7ed92481e81ccfad0212b371d3c7d0074998 (diff)
downloadwee-slack-c3fd361137b7ed71cbdaa53686584a8e462d88eb.tar.gz
mark read if last read is equal too
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index be0236e..62c4272 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -385,7 +385,7 @@ class Channel(SlackThing):
set_read_marker = False
time = float(time)
message = message.encode('ascii', 'ignore')
- if backlog == True or (time != 0 and self.last_read > time):
+ if backlog == True or (time != 0 and self.last_read >= time):
tags = "no_highlight,notify_none,logger_backlog_end"
set_read_marker = True
elif message.find(self.server.nick) > -1:
@@ -394,6 +394,7 @@ class Channel(SlackThing):
tags = "notify_message"
time = int(float(time))
if self.channel_buffer:
+ w.prnt_date_tags(self.channel_buffer, time, tags, "%s\t%s %s" % (user, time, self.last_read))
w.prnt_date_tags(self.channel_buffer, time, tags, "%s\t%s" % (user, message))
if set_read_marker:
self.mark_read(False)