try a different format for the display name

This commit is contained in:
Morgan McMillian 2017-04-24 19:43:06 -07:00
parent d40180cd42
commit 06b2171943

View file

@ -32,7 +32,7 @@ def on_receive_events(transaction):
text = event['content']['body'] text = event['content']['body']
else: else:
token = app.config['MATRIX_PNUT_TOKEN'] token = app.config['MATRIX_PNUT_TOKEN']
text = "" + get_displayname(event["user_id"]) + " : " + event['content']['body'] text = "[" + get_displayname(event["user_id"]) + "] " + event['content']['body']
elif event['content']['msgtype'] == 'm.emote': elif event['content']['msgtype'] == 'm.emote':
if user: if user:
token = user.pnut_token token = user.pnut_token