try a different format for the display name
This commit is contained in:
parent
d40180cd42
commit
06b2171943
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue