diff options
author | Aidan Epstein <aidan@jmad.org> | 2020-03-26 07:55:42 -0700 |
---|---|---|
committer | Aidan Epstein <aidan@jmad.org> | 2020-03-26 07:55:42 -0700 |
commit | 2ed2e81d3a46366080cc4e829d9d0b58d7c9aaf4 (patch) | |
tree | 5aba9eed6a72484a2528112ab86e94d9b3904056 /wee_slack.py | |
parent | 02a05d305d1a9aa6befb2285b4718cd10a0eb2e1 (diff) | |
download | wee-slack-2ed2e81d3a46366080cc4e829d9d0b58d7c9aaf4.tar.gz |
Fix python 2 incompatibility.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
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) |