aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-06 09:12:21 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-06 09:12:21 -0800
commit838f26a3fd82e9f9e5cf801cb46b71c1cce382c1 (patch)
tree6b5510ac1c10ec5c24f30291553c6d558fbc3bd4 /wee_slack.py
parent47c0e750b48d8bae74b38ae92a76a98eb37c1301 (diff)
downloadwee-slack-838f26a3fd82e9f9e5cf801cb46b71c1cce382c1.tar.gz
update hotlist with new message when opening channel
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index db696df..e883248 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1941,8 +1941,10 @@ def process_channel_created(message_json, eventrouter, **kwargs):
#raise
def process_im_open(message_json, eventrouter, **kwargs):
+ channel = kwargs['channel']
item = message_json
kwargs['team'].channels[item["channel"]].check_should_open(True)
+ w.buffer_set(channel.channel_buffer, "hotlist", "2")
def process_im_close(message_json, eventrouter, **kwargs):
item = message_json