diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-01-26 11:37:14 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-01-26 11:37:14 +0100 |
commit | e71aa42a64429a57215f878f1f30985e36b198d7 (patch) | |
tree | 772ec9d17b4d70641ac9da82417760cf5e8ed2e7 | |
parent | 6b78e94a4637c10644a0472159d7abe1dd7a0490 (diff) | |
download | wee-slack-e71aa42a64429a57215f878f1f30985e36b198d7.tar.gz |
Simplify setting topic from topic or purpose
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 2e94222..08cf0d4 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1458,9 +1458,7 @@ class SlackChannel(SlackChannelCommon): def render_topic(self): if self.channel_buffer: - topic = self.topic['value'] - if topic == "": - topic = self.slack_purpose['value'] + topic = self.topic['value'] or self.slack_purpose['value'] topic = unhtmlescape(unfurl_refs(topic, ignore_alt_text=False)) w.buffer_set(self.channel_buffer, "title", topic) |