diff options
author | Ryan Huber <rhuber@gmail.com> | 2016-09-28 23:39:00 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2016-09-28 23:39:00 -0700 |
commit | 283356492d4c88c75c1be702472bbe8027c7a63d (patch) | |
tree | bfe6b06b21da1945325b488bc07cf02059a49dcf | |
parent | f6f9422ff98668a182efdda931582a3c8dadb03e (diff) | |
download | wee-slack-283356492d4c88c75c1be702472bbe8027c7a63d.tar.gz |
handle mpim on websocket
-rw-r--r-- | wee_slack.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 94b4dc2..1f74696 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1629,6 +1629,16 @@ def process_group_archive(message_json): channel.detach_buffer() +def process_mpim_close(message_json): + server = servers.find(message_json["_server"]) + server.channels.find(message_json["channel"]).close(False) + + +def process_mpim_open(message_json): + server = servers.find(message_json["_server"]) + server.channels.find(message_json["channel"]).open() + + def process_im_close(message_json): server = servers.find(message_json["_server"]) server.channels.find(message_json["channel"]).close(False) |