Added correct unicode representation to chat messages

This commit is contained in:
2019-02-03 21:04:10 -06:00
parent 38b0eec741
commit 21895d307b
2 changed files with 2 additions and 1 deletions

View File

@@ -485,7 +485,7 @@ class Controller(object):
self.session.soundplayer.play("conversation_opened.ogg")
return
# If the chat already exists, let's create a dictionary wich will contains data of the received message.
message.update(id=obj.message_id, user_id=uid, date=obj.timestamp, body=obj.text, attachments=obj.attachments)
message.update(id=obj.message_id, user_id=uid, date=obj.timestamp, body=utils.clean_text(obj.text), attachments=obj.attachments)
# if attachments is true, let's request for the full message with attachments formatted in a better way.
# ToDo: code improvements. We shouldn't need to request the same message again just for these attachments.
if len(message["attachments"]) != 0: