aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-03-19 23:19:18 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-03-19 23:28:56 +0100
commit648d46d9693e5e323108d4a6b0da697a1d3b732e (patch)
treee2d981820cfcec983c486fbd35dde0d98d2c4c9f /wee_slack.py
parent1273892f3924a1e67f31f3c8b4663daf7932d292 (diff)
downloadwee-slack-648d46d9693e5e323108d4a6b0da697a1d3b732e.tar.gz
Show the parent message as the first message in a thread
The message is also shown in the title bar, but that is usually limited to one line, so it may not show the whole message. Fixes #705
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 61edd41..edd636c 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2279,7 +2279,7 @@ class SlackThreadChannel(SlackChannelCommon):
def get_history(self):
self.got_history = True
- for message in self.parent_message.submessages:
+ for message in chain([self.parent_message], self.parent_message.submessages):
text = self.render(message)
self.buffer_prnt(message.sender, text, message.ts, tag_nick=message.sender_plain)
if len(self.parent_message.submessages) < self.parent_message.number_of_replies():