aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 29c22f6..b61bb4c 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1607,8 +1607,10 @@ class SlackChannelCommon(object):
if ts > self.last_read:
self.last_read = ts
if update_remote:
+ args = {"channel": self.identifier, "ts": ts}
+ args.update(post_data)
s = SlackRequest(self.team, SLACK_API_TRANSLATOR[self.type]["mark"],
- {"channel": self.identifier, "ts": ts, **post_data}, channel=self)
+ args, channel=self)
self.eventrouter.receive(s)
self.new_messages = False
@@ -2267,7 +2269,7 @@ class SlackThreadChannel(SlackChannelCommon):
self.rename()
def mark_read(self, ts=None, update_remote=True, force=False):
- super().mark_read(ts=ts, update_remote=update_remote, force=force, post_data={"thread_ts": self.parent_message.ts})
+ super(SlackThreadChannel, self).mark_read(ts=ts, update_remote=update_remote, force=force, post_data={"thread_ts": self.parent_message.ts})
def buffer_prnt(self, nick, text, timestamp, history_message=False, tag_nick=None):
data = "{}\t{}".format(format_nick(nick, self.last_line_from), text)