aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-11-16 21:56:23 +0000
committerRyan Huber <rhuber@gmail.com>2015-11-16 21:56:23 +0000
commit411bb517b8d72b3fb9791d67b64c6ee8fe4f2cca (patch)
tree1e6682527027476d87f27c411f4886bde6158f9c /wee_slack.py
parent38a4afb49390ff3f0ccd81d0da1eb411d1095b5c (diff)
downloadwee-slack-411bb517b8d72b3fb9791d67b64c6ee8fe4f2cca.tar.gz
show edited messages differently than unfurls
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 27b7b3e..3948b6b 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1499,8 +1499,11 @@ def process_message_changed(message_json):
else:
message_json["fallback"] = m["fallback"]
+ m["text"] += unwrap_attachments(message_json)
channel = channels.find(message_json["channel"])
- channel.change_message(m["ts"], m["text"] + " (edited)")
+ if "edited" in m:
+ m["text"] += " (edited)"
+ channel.change_message(m["ts"], m["text"])
def process_message_deleted(message_json):