From a712af40d808ba393ebfea29f01c9ffc4f9909b7 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Thu, 9 Feb 2017 13:36:04 -0800 Subject: ignore thread messages --- wee_slack.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 459ce7f..13d1f93 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1212,7 +1212,11 @@ class SlackChannel(object): s = SlackRequest(self.team.token, method, data) self.eventrouter.receive(s) def sorted_message_keys(self): - return sorted(self.messages) + keys = [] + for k in self.messages: + if type(self.messages[k]) == SlackMessage: + keys.append(k) + return sorted(keys) # Typing related def set_typing(self, user): if self.channel_buffer and self.is_visible(): -- cgit