diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index ea335ba..2152204 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1492,7 +1492,8 @@ def process_im_open(message_json): def process_im_marked(message_json): channel = channels.find(message_json["channel"]) channel.mark_read(False) - w.buffer_set(channel.channel_buffer, "hotlist", "-1") + if channel.channel_buffer is not None: + w.buffer_set(channel.channel_buffer, "hotlist", "-1") def process_im_created(message_json): |