aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-23 01:06:10 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-06-04 21:40:59 +0200
commit10aea3c59ca1852c333087aa2a33ef08af74d473 (patch)
tree755ef7593836f45761c5979161046c7a7abd8929
parent01c366afcb6def266dc7d9c13e082756cddb6ab2 (diff)
downloadwee-slack-10aea3c59ca1852c333087aa2a33ef08af74d473.tar.gz
Don't call buffer_clear on destroy_buffer
When destroy_buffer is called, the buffer will be closed, so there isn't any point in clearing it.
-rw-r--r--wee_slack.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/wee_slack.py b/wee_slack.py
index fc179fd..f7d3436 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1912,13 +1912,9 @@ class SlackChannel(SlackChannelCommon):
s = SlackRequest(self.team, join_method, {"users": self.user, "return_im": True}, channel=self)
self.eventrouter.receive(s)
- def clear_messages(self):
- w.buffer_clear(self.channel_buffer)
+ def destroy_buffer(self, update_remote):
self.messages = OrderedDict()
self.got_history = False
-
- def destroy_buffer(self, update_remote):
- self.clear_messages()
self.channel_buffer = None
self.active = False
if update_remote and not self.eventrouter.shutting_down: