diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-08-14 12:21:13 -0400 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-08-14 12:21:13 -0400 |
commit | 45622256ac987592fa5235284243517a372aa95d (patch) | |
tree | 8808fb29b9c3ed3e5f765abdb0dc10cf8dc3fc53 /wee_slack.py | |
parent | fc5a278eb14378aeefb00acf6441039afc0acf36 (diff) | |
download | wee-slack-45622256ac987592fa5235284243517a372aa95d.tar.gz |
reaction text changes should happen after unicode conversion
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)" |