diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index 5b1e744..90b0d8c 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2209,8 +2209,9 @@ class SlackMessage(object): return hash(self.ts) def open_thread(self, switch=False): - self.thread_channel = SlackThreadChannel(EVENTROUTER, self) - self.thread_channel.open() + if not self.thread_channel or not self.thread_channel.active: + self.thread_channel = SlackThreadChannel(EVENTROUTER, self) + self.thread_channel.open() if switch: w.buffer_set(self.thread_channel.channel_buffer, "display", "1") |