aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-09 13:36:04 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-09 13:36:04 -0800
commita712af40d808ba393ebfea29f01c9ffc4f9909b7 (patch)
treec87815ba2ab1a2de47bfbc56515155f775af30a3
parent8cd18f2e67d00d6171b79e823fcf50565f6cddf0 (diff)
downloadwee-slack-a712af40d808ba393ebfea29f01c9ffc4f9909b7.tar.gz
ignore thread messages
-rw-r--r--wee_slack.py6
1 files changed, 5 insertions, 1 deletions
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():