diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 4770ecc..903a3e4 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1371,12 +1371,12 @@ def process_message(message_json, cache=True): text = text.replace("\t", " ") name = get_user(message_json, server) - if "reactions" in message_json: - text += create_reaction_string(message_json["reactions"]) - text = text.encode('utf-8') name = name.encode('utf-8') + if "reactions" in message_json: + text += create_reaction_string(message_json["reactions"]) + if "subtype" in message_json and message_json["subtype"] == "message_changed": if "edited" in message_json["message"]: append = " (edited)" |